Slightly different setup

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
gse1986
OpenVpn Newbie
Posts: 1
Joined: Fri Jun 05, 2015 2:49 pm

Slightly different setup

Post by gse1986 » Fri Jun 05, 2015 2:55 pm

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!

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: Slightly different setup

Post by Traffic » Fri Jun 12, 2015 11:44 am

Please see the Forum rules (top of page)

Also post contents of client1 CCD file.

Post Reply