Iptables port forwarding help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hello,

I have a webcam that I wish to view from the internet.  It is a wireless
linksys model with an ip address of 192.168.1.15.  I have it set on port
8081, 192.168.1.15:8081.

I am using the IP Masquerade HowTo script.  Here's the rule I added to my
firewall script:

EXTIF="ppp0"
INTIF="eth1"
EXTIP="`$IFCONFIG $EXTIF | grep inet | cut -d : -f 2 | cut -d \  -f 1`"


$IPTABLES -A FORWARD -i $EXTIF -o $INTIF -p tcp --dport 8081 -m state \
 --state NEW,ESTABLISHED,RELATED -j ACCEPT

$IPTABLES -A PREROUTING -t nat -p tcp -d $EXTIP --dport 8081 \
 -j DNAT --to 192.168.1.15:8081

Its not working.  Can anyone offer a suggestion?

TIA



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux