On Tue, 24 Jun 2003 15:46:52 -0400, Rodrigo Cortes Cano <raprop@koslan.cl>
wrote:
>
>
> Sorry for the question newbie.
>
> i have shorewall with 3 ethernet.
>
> lan eth0 red local
> wan eth1 internet gateway 1
> net eth2 internet by xDSL. (pppoe)
>
>
> by default any route for eth1 and masq all by eth1
> now if me put this
> eth1 1.1.1.0/24
> ppp0 1.1.1.0/24
>
> how rules i need for example to permit a one ip use to ppp0 how gateway?
>
Set up your routing as described in the Linux Advanced Routing and Traffic
Control Howto, section 4.2.1 (link from the Shorewall "Useful Links"
page).
Add an entry for ppp0 in /etc/shorewall/interfaces with ''net''
as the zone.
Duplicate your entry in /etc/shorewall/masq changing ''eth1'' to
''ppp0'' (so
you will have an entry for each external interface).
Add a policy of "net net DROP" to prevent routing between the two
ISPs.
-Tom
--
Tom Eastep \ Shorewall - iptables made easy
Shoreline, \ http://www.shorewall.net
Washington USA \ teastep@shorewall.net