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
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
> 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
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
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
> 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
> 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
>
7 matches
Mail list logo