Iptables port forwarding help

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



 

> -----Original Message-----
> From: centos-bounces@xxxxxxxxxx 
> [mailto:centos-bounces@xxxxxxxxxx] On Behalf Of Dan Pritts
> Sent: Thursday, April 13, 2006 7:37 PM
> To: CentOS mailing list
> Subject: Re:  Iptables port forwarding help
> 
> Is IP forwarding turned on?
> 
>   echo 1 > /proc/sys/net/ipv4/ip_forward

Hello Dan,

Yes, its turned on earlier in the script:

echo "  Enabling forwarding.."
echo "1" > /proc/sys/net/ipv4/ip_forward


> 
> 
> On Thu, Apr 13, 2006 at 07:29:53PM -0400, Thomas E Dukes wrote:
> > 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
> > 
> > 
> > _______________________________________________
> > CentOS mailing list
> > CentOS@xxxxxxxxxx
> > http://lists.centos.org/mailman/listinfo/centos
> 
> 
> danno
> --
> dan pritts - systems administrator - internet2
> 734/352-4953 office        734/834-7224 mobile
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos
> 



[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