All of lore.kernel.org
 help / color / mirror / Atom feed
* Multiple source question
@ 2002-06-19 13:31 Benny Butler
  2002-06-19 13:41 ` Antony Stone
  0 siblings, 1 reply; 4+ messages in thread
From: Benny Butler @ 2002-06-19 13:31 UTC (permalink / raw)
  To: netfilter

Ok, after much hacking together the rule below I finally get the machine
at 192.168.2.70 to access 10.46.210.5.  Great, but if I run the same
rule on any more internal IP addresses, still only 2.70 works.  I'm
pretty sure after reading the docs that my problem is because my rule is
being matched and it's not allowing anything after the first.  I got
desperate and tried -A PREROUTING and -A FORWARD and -j ACCEPT, none of
which helped (usually made it worse.)

I also tried multiple source addresses in one rule, but either that's
not acceptable or it's not , or ; delimited.

And you may ask why sudo, it's cause this whole thing runs out of a php
script as the apache user.

Does anyone have any tips for this?

Thanks


sudo /sbin/iptables -t nat -A POSTROUTING -o eth0 -s 192.168.2.70 -d /
10.46.210.5 -p tcp --dport 80 -j MASQUERADE



[root@localhost html]# iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination
MASQUERADE  tcp  --  192.168.2.70         10.46.210.5        tcp
dpt:http

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
[root@localhost html]#




 
_______________________
Benny Butler
334-340-8345
http://www.nexusitg.com



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-06-19 14:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-19 13:31 Multiple source question Benny Butler
2002-06-19 13:41 ` Antony Stone
2002-06-19 14:01   ` Benny Butler
2002-06-19 14:14     ` Antony Stone

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.