On Wed, 2007-11-21 at 17:21 -0500, Eric Faden wrote:
> So I have a server hosted at Serverbeach (Debian Etch).  This box has an 
> IP (eth0) in one subnet (192.168.0.2 netmask 255.255.255.128).  I have 
> also been granted 3 extra IPs (eth0:0, eth0:1, eth0:2) in another subnet 
> (192.168.1.2 through 192.168.1.4 netmask 255.255.255.0).  I have read 
> through the Aliased IP docs, but still can't seem to get it to work.  My 
> goal is to have EACH of the IPs be able to be able controlled (e.g. I 
> would like each IP to have its own zone).

That isn't possible. And besides that, it is meaningless because these
IP addresses are all _inside_ your firewall so they are essential parts
of the firewall zone. The Aliased IP doc is complete -- there are no
other undocumented silly things you can do with multiple IP addresses on
a single interface.

> Here is what I have setup:
> 
> zones:
> fw      firewall
> net0   ipv4
> net1   ipv4
> net2   ipv4
> net3   ipv4
> 
> 
> interfaces:
> -   eth0   192.168.0.128,192.168.1.255   
> norfc1918,routefilter,dhcp,tcpflags,logmartians,nosmurfs   (NOTE: I 
> tried without any options)
> 
> hosts:
> net0   eth0:192.168.0.2
> net1   eth0:192.168.1.2
> net2   eth0:192.168.1.3
> net3   eth0:192.168.1.4

The above is unworkable. It defines net0 as the single host with IP
address 192.168.0.2 connected through eth0. Given that 192.168.0.2 is an
address on the firewall and not one outside of the firewall, the zone is
essentially empty. Same for the other netX zones you have defined.

> 
> policy:
> $FW          net0         ACCEPT
> net0           $FW        ACCEPT     
> net0           all             ACCEPT
> $FW          net1         ACCEPT
> net1           $FW        ACCEPT     
> net1           all             ACCEPT    
> $FW          net2         ACCEPT
> net2           $FW        ACCEPT     
> net2           all             ACCEPT    
> $FW          net3         ACCEPT
> net3           $FW        ACCEPT     
> net3           all             ACCEPT            
> all              all             REJECT          info
> 
> 
> There are no rules set since the policy is set to ACCEPT for all for 
> testing purposes.  If I startup shorewall with (safe-start and this 
> config) my server drops off the earth for 60 seconds.  Does anyone see 
> anything wrong with this config? 

Yes -- you are trying to do something that cannot be done with
Shorewall.

-Tom
-- 
Tom Eastep    \ Nothing is foolproof to a sufficiently talented fool
Shoreline,     \ http://shorewall.net
Washington USA  \ [EMAIL PROTECTED]
PGP Public Key   \ https://lists.shorewall.net/teastep.pgp.key

Attachment: signature.asc
Description: This is a digitally signed message part

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to