Routing openvpn client connection to network computers
Posted: Thu Oct 01, 2020 4:06 am
Hello all,
My scenario is as follows, a Linux box acting as a router. I want it to connect to the VPN client and then all the client computers on the network sending all traffic through that tunnel. I have everything setup except the iptables part. The scenario is as follows
WAN=eth1 (dhcp)
LAN=br0(bridge of eth0 & wlan0) (172.168.1.1/24)
tun0=openvpn
Everything is functional, but i can only get traffic to go through the tunnel if i set everything to accept.
pi@eRPI4rt:~ $ sudo iptables -S
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
I have tried all kinds of configurations to lockdown the firewall but none have worked.
Could you guys please help me?
Thanks in advance.
My scenario is as follows, a Linux box acting as a router. I want it to connect to the VPN client and then all the client computers on the network sending all traffic through that tunnel. I have everything setup except the iptables part. The scenario is as follows
WAN=eth1 (dhcp)
LAN=br0(bridge of eth0 & wlan0) (172.168.1.1/24)
tun0=openvpn
Everything is functional, but i can only get traffic to go through the tunnel if i set everything to accept.
pi@eRPI4rt:~ $ sudo iptables -S
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
I have tried all kinds of configurations to lockdown the firewall but none have worked.
Could you guys please help me?
Thanks in advance.