Answer the question
In order to leave comments, you need to log in
How to disable forwarding between two interfaces on the same machine?
two virtual interfaces tun0 (with a vpn server) and tun2 (vpn client) are raised on ubuntu, while the client should not connect to the server on this system, but should connect to the server with the same configuration on another machine. Probably, it is necessary to prohibit forwarding between interfaces, but how exactly - I have no idea. Help, please.
Answer the question
In order to leave comments, you need to log in
Set up iptables.
INPUT + FORWARD allow connections from tun0 to tun2, + deny rules to eth0
Denying traffic from one interface to another:
If you need to prohibit the client from going to another vpn server:
Or just disable forwarding on the server: sysctl -w net.ipv4.ip_forward=0
or in /etc/sysctl.conf
and to dissolve vpn under subnets? the server, for example, 10.0.0.1 is this server, and where the client climbs 10.0. 1.1 ? or I misunderstood something? )
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question