OK, please dont beat me too much... I have tried the Wiki and looked online and even here before posting... i have been trying to figure this out for a week.
Here is my problem, i hope someone can help me accomplish my goal.
I have a VPN client that has a Public IP and open port 80. The client is OpenVPN.
I have the VPN connected without any problems.
I have a VPN Director rule setup for 192.168.1.0/24 and if i use the following commands then the port forwarding works and the website responds.
iptables -I FORWARD 8 -i tun11 -p tcp -d 192.168.1.5 --dport 80 -j ACCEPT
iptables -t nat -I PREROUTING -i tun11 -p tcp --dport 80 -j DNAT --to-destination 192.168.1.5:80
But this causes ALL traffic to go through the VPN. The VPN is slow and i don't want normal traffic going out the VPN. I only want the ports that i define like above to go out the VPN. i want all other traffic to go out the WAN without the VPN.
Please if you can assist it would be much appreciated.
Here is my problem, i hope someone can help me accomplish my goal.
I have a VPN client that has a Public IP and open port 80. The client is OpenVPN.
I have the VPN connected without any problems.
I have a VPN Director rule setup for 192.168.1.0/24 and if i use the following commands then the port forwarding works and the website responds.
iptables -I FORWARD 8 -i tun11 -p tcp -d 192.168.1.5 --dport 80 -j ACCEPT
iptables -t nat -I PREROUTING -i tun11 -p tcp --dport 80 -j DNAT --to-destination 192.168.1.5:80
But this causes ALL traffic to go through the VPN. The VPN is slow and i don't want normal traffic going out the VPN. I only want the ports that i define like above to go out the VPN. i want all other traffic to go out the WAN without the VPN.
Please if you can assist it would be much appreciated.