January 17, 2019, 09:02:28 AM

News : LinuxSolved.com Linux Help Community Forum..

Author Topic: OPENVPN /IPTABLES help  (Read 2514 times)

Offline woodson2

  • New Member
  • Posts: 3
« on: November 05, 2008, 06:30:44 PM »
Hello, I have openvpn up and running successfully on FC9. I'm using routing mode with the following configuration

My internal LAN range
My Openvpn client range

I can connect and ping the openvpn server from the openvpn client but can't talk to the other machines on the internal LAN subnet. However, the machines on the internal LAN subnet can ping the openvpn clients. I have entered the following in iptables.

iptables -t nat -I POSTROUTING -s -o eth0 -j MASQUERADE
iptables -I INPUT -i tun+ -j ACCEPT
iptables -I INPUT -i tap+ -j ACCEPT
iptables -I FORWARD -i tap+ -j ACCEPT
iptables -I FORWARD -i tun+ -j ACCEPT
iptables -I INPUT -i eth0 -j ACCEPT
iptables -I FORWARD -i eth0 -j ACCEPT

I have also added a route on my d-link router that routes any traffic destined to back to the OPENVPN server(10.10.10.xxx). This all works as it should when the firewall is disabled so apparently I'm missing some rule in iptables...Any help would be greatly appreciated..thanks..