Answer the question
In order to leave comments, you need to log in
How to wrap VPN traffic?
Good afternoon.
there is a server 192.168.1.2 with two vpn interfaces
tun0 - server vpn for connecting users to it 10.10.10.0
tun1 - client of another vpn server 10.10.20.0
How to wrap all traffic from tun0 to tun1 and all traffic from 192.168.1.0/24 to tun0 .to. will act as a gateway
Answer the question
In order to leave comments, you need to log in
I found an article on Habré, made it according to it, everything works https://habrahabr.ru/sandbox/78897/
It will be problematic to turn all
traffic from 192.168
.
iptables -A FORWARD -i tun0 -o tun1 -j ACCEPT
iptables -A FORWARD -i tun1 -o tun0 -j ACCEPT
iptables -A FORWARD -s 192.168.1.0/24 -o tun1
iptables -A FORWARD -i tun1 -d 192.168.1.0/24
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question