On Thu, 31 Jul 2003 14:56:53 +0300, Indrek M. <(E-Mail Removed)> wrote:
> I have NAT router (R.H7.3) with 2 subnets (eth1 and eth2), eth0 go to
> internet.
> From both subnet can go to internet.
> But I want go from one subnet to second.
> How can tat do? IPTABLES default policys are all ACCEPT and NAT work
> well.
>
>
> | internet
> | eth0
> |
> |
> |
> -----------
> | Router |
> | |
> -----------
> | |
> | |
> | eth2
> | 192.168.11.1/24
> eth1
> 192.168.10.1/24
You need to insert rules at the head of your iptables FORWARD chain that
forwards between these interfaces, before it hits any masq rules. Not
sure if exact syntax is correct since this is based on an old ipchains
example I had, but something like this:
iptables -I FORWARD -p all -s -i eth1 -d -i eth2 -j ACCEPT
iptables -I FORWARD -p all -s -i eth2 -d -i eth1 -j ACCEPT
Or maybe this could be condensed to:
iptables -I FORWARD -p all -s 192.168.0.0/16 -d 192.168.0.0/16 -j ACCEPT
--
David Efflandt - All spam ignored
http://www.de-srv.com/
http://www.autox.chicago.il.us/ http://www.berniesfloral.net/
http://cgi-help.virtualave.net/ http://hammer.prohosting.com/~cgi-wiz/