Answer the question
In order to leave comments, you need to log in
How to properly configure routing when using a VPN?
Good afternoon.
I am training in setting up and understanding routing, using iptables.
I set up an openvn client
on the server, a LAN (eth0, ip via dhcp, 192.168.0.1) connects to the server, the
Internet connects via ppp0
So far, I have configured the Internet to be in LAN, the iptaqbles rules:
iptables -S
-P INPUT ACCEPT
-P FORWARD DROP
-P OUTPUT ACCEPT
-A INPUT -d 224.0.0.251/32 -p udp -m udp --dport 5353 -j ACCEPT
-A FORWARD -i ppp0 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -i eth0 -o ppp0 -j ACCEPT
-A FORWARD -j LOG
-A OUTPUT -d 224.0.0.251/32 -p udp -m udp --dport 5353 -j ACCEPT
openvpn client.conf
RTNETLINK answers: No such device
Answer the question
In order to leave comments, you need to log in
UPDT1:
If you manually add a route before starting, ip route add 5.187.*.*/32 ppp0
then everything rises and works (the error with the route remains), but it's not clear why these errors still come out and how to set it up correctly?
UPDT2: If you google openvpn over ppp0, the solutions are the same and they write that it is, uh, a bug/feature of openvpn
and
ppp0
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question