I've got an openvpn set up that isn't quite working correctly.
I've got a server, plus a number of clients. One of the clients(client 1) is set to accept traffic destined for certain IPs (as a ccd), when this client isn't connected any traffic is routed correctly through the server, typing what is my ip into google shows the servers public IP, so I am happy it's working.
The server and client 1 are both running debian.
Once I connect client 1 (connected to the internet on another public IP) i am no longer able to access any internet resources.
I've enabled ip forwarding
Code: Select all
cat /proc/sys/net/ipv4/ip_forward
1
Code: Select all
sudo iptables -I FORWARD -i tun0 -o eth0 -j ACCEPT;
sudo iptables -I FORWARD -i eth0 -o tun0 -j ACCEPT
Thanks!