Page 1 of 1

Slightly different setup

Posted: Fri Jun 05, 2015 2:55 pm
by gse1986
Hello.

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
and added iptables rules -

Code: Select all

sudo iptables -I FORWARD -i tun0 -o eth0 -j ACCEPT; 
sudo iptables -I FORWARD -i eth0 -o tun0 -j ACCEPT
what else do I need to do?


Thanks!

Re: Slightly different setup

Posted: Fri Jun 12, 2015 11:44 am
by Traffic
Please see the Forum rules (top of page)

Also post contents of client1 CCD file.