I have a Red Hat 5.5 server running as a firewall using iptables. I need to move from a fixed public IP address to a VPN tunnel over OpenVPN.
The firewall (iptables) worked perfectly with the fixed IP address, but when I moved to the OpenVPN it no longer forwards the requests. I can SSH to the firewall server through the VPN tunnel, so I know the VPN is working and connected. In the iptables I have forwarded port 80 to an internal server, but when I try to access this through the OpenVPN tunnel it will not forwarded the request like it did when it was configured with the fixed address.
Do have have to do something special in the OpenVPN client file to get iptables to work? Is there something I am missing?
Attached are my OpenVPN config files and iptables configuration. (The addresses and account info are chanced for my protection.)
Thanks. firewall-rules.sh client.conf.txt firewall-rules.sh firewall-rules.sh