Port Forwarding to Client for IP Camera
Posted: Tue Dec 06, 2011 2:21 am
I searched to to no avail so I need someone's help. My parents ISP do not allow forwarding ports. They want to setup a IP sercuity camera to use over the internet. So I setup to two tomato based router using OpenVPN tunneling. I want to use my internet connection to allow the port required by the IP camera to be access via the internet. I got OpenVPN to tunnel correctly and I can connect to the camera via my network but I could not come up with the correct IPTABLE to forward the port correctly to work over the internet.
Here is my setup
OpenVPN Server Router with ISP allowing port forwarding
192.168.10.1
10.0.0.1
Server Firewall iptables
iptables -I FORWARD -i br0 -o tun21 -j ACCEPT
iptables -I FORWARD -i tun21 -o br0 -j ACCEPT
iptables -I INPUT -i tun21 -j ACCEPT
OpenVPN Client Router with ISP not allowing port forwarding
192.168.6.1
10.0.0.2
Client Firewall iptables
iptables -I FORWARD -i br0 -o tun11 -j ACCEPT
iptables -I FORWARD -i tun11 -o br0 -j ACCEPT
iptables -I INPUT -i tun11 -j ACCEPT
IP Camera
192.168.6.106 port 8000
Here is my setup
OpenVPN Server Router with ISP allowing port forwarding
192.168.10.1
10.0.0.1
Server Firewall iptables
iptables -I FORWARD -i br0 -o tun21 -j ACCEPT
iptables -I FORWARD -i tun21 -o br0 -j ACCEPT
iptables -I INPUT -i tun21 -j ACCEPT
OpenVPN Client Router with ISP not allowing port forwarding
192.168.6.1
10.0.0.2
Client Firewall iptables
iptables -I FORWARD -i br0 -o tun11 -j ACCEPT
iptables -I FORWARD -i tun11 -o br0 -j ACCEPT
iptables -I INPUT -i tun11 -j ACCEPT
IP Camera
192.168.6.106 port 8000