[rhn-users] ip_forward problem

Strickler Carl cstrickler at iitri.org
Wed Sep 8 15:37:07 UTC 2004


The syntax of your IPTables statement looks a little off.  You may want to
try 

iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to-source 10.0.0.140

You will most definitely need to echo 1 > /proc/sys/net/ipv4/ip_forward

- Carl



-----Original Message-----
From: rhn-users-bounces at redhat.com [mailto:rhn-users-bounces at redhat.com] On
Behalf Of diego soares
Sent: Wednesday, September 08, 2004 10:28 AM
To: rhn-users at redhat.com
Subject: [rhn-users] ip_forward problem


Hello to all.  
I am with a well strange problem and I do not know
more what to make.  

I have an ADSL sharing the Internet for the internal
net.  The modem is in eth0 with IP 10.0.0.140 the net
is in eth1 with IP 192.168.0.1 

Has squid making proxy/cache, everything functioning
perfectly.  But at the active moment that I
ip_forward(echo 1 >/proc/sys/net/ipv4/ip_forward)
constraint everything!  
ping for out is not, traceroute done of the proper
server and of you scheme them of the net stop in the
IP of modem(10.0.0.138) 

If I to disactivate 
(echo 0 >/proc/sys/net/ipv4/ip_forward) 
return everything to function Have only this rule in
iptables 
iptables -t nat -A POSTROUTING -s 0.0.0.0 -o eth0 -j
SNAT --to 10.0.0.140

somebody can help me?


	
	
		
_______________________________________________________
Yahoo! Acesso Grátis - navegue de graça com conexão de qualidade! 
http://br.acesso.yahoo.com/


_______________________________________________
rhn-users mailing list
rhn-users at redhat.com https://www.redhat.com/mailman/listinfo/rhn-users





More information about the rhn-users mailing list