Re: [CentOS] Can't get forwarding to work

2009-10-04 Thread John R Pierce
Barry Brimer wrote: >> /sbin/ifconfig eth0:1 $WIN_EXTERNAL_IP netmask $ETH0_NETMASK broadcast >> $ETH0_BCAST >> /sbin/iptables -t nat -A PREROUTING -p tcp -i eth0 -d $WIN_EXTERNAL_IP >> --dport 80 -j DNAT --to $WIN_INTERNAL_IP:80 >> /sbin/iptables -A FORWARD -p tcp -i eth0 -d $WIN_INTERNAL_IP --dpo

Re: [CentOS] Can't get forwarding to work

2009-10-04 Thread Neil Aggarwal
Barry: This is strange. Everything just started working all of a sudden. I was getting firewall logs and was able to add the forward rules I needed. I don't get it, but it is working so I am not complaining. Thanks, Neil -- Neil Aggarwal, (281)846-8957, www.JAMMConsulting.com Will yo

Re: [CentOS] Can't get forwarding to work

2009-10-04 Thread Barry Brimer
> I changed my rules to these: > > /sbin/iptables -t nat -A PREROUTING -d $WIN_EXTERNAL_IP -j DNAT --to > $WIN_INTERNAL_IP > /sbin/iptables -t nat -A POSTROUTING -s $WIN_INTERNAL_IP -j SNAT --to > $WIN_EXTERNAL_IP > > And I am still not seeing anything log on the firewall log > and the connection i

Re: [CentOS] Can't get forwarding to work

2009-10-04 Thread Neil Aggarwal
al > Sent: Sunday, October 04, 2009 8:15 PM > To: 'CentOS mailing list' > Subject: Re: [CentOS] Can't get forwarding to work > > Hello: > > I changed my rules to these: > > /sbin/iptables -t nat -A PREROUTING -d $WIN_EXTERNAL_IP -j DNAT --to > $WIN

Re: [CentOS] Can't get forwarding to work

2009-10-04 Thread Neil Aggarwal
Hello: I changed my rules to these: /sbin/iptables -t nat -A PREROUTING -d $WIN_EXTERNAL_IP -j DNAT --to $WIN_INTERNAL_IP /sbin/iptables -t nat -A POSTROUTING -s $WIN_INTERNAL_IP -j SNAT --to $WIN_EXTERNAL_IP And I am still not seeing anything log on the firewall log and the connection is not wo

Re: [CentOS] Can't get forwarding to work

2009-10-04 Thread Neil Aggarwal
> Do you have return POSTROUTING rules in your iptables nat > table, have you > enabled ip forwarding? I don't have a postrouting rule. I guess I need to add one. I have enabled IP forwarding using: echo "1" > /proc/sys/net/ipv4/ip_forward Thanks, Neil -- Neil Aggarwal, (281)846-8957

Re: [CentOS] Can't get forwarding to work

2009-10-04 Thread Barry Brimer
> Hello all: > > I am having trouble getting port forwarding > with iptables to work. > > I have this configuration: > > Internet --- Linux machine --- Windows machine > > The windows machine is set up to listen on > IP address 10.0.0.31 > > I am able to use lynx to connect to http://10.0.0.31 on >