[NoCat] Allow certain network card to have access.

Schuyler Erle schuyler at oreilly.com
Tue, 5 Aug 2003 16:40:22 -0700 (PDT)


On Sun, 3 Aug 2003, James wrote:

> I have a server which is doing gateway, and auth. Thats setup fine, my
> problem is I have 3 network cards.
> 
> The first one provides access to the internet. (eth0) The second one
> provides access to my local network (eth1) The third provides access
> to the wireless ap.  (eth2)
> 
> Is there anyway I can make all connections from eth1 allowed? I want
> to be able to completly bypass the NoCat login part only for eth1, I
> still want the login screen for eth2.
> 
> Is this posible?, and How?

Yeah, before executing bin/gateway, execute the following commands:

  iptables -t mangle -A PREROUTING -i eth1 -j MARK --set-mark 1
  iptables -t filter -A FORWARD -o eth1 -j ACCEPT

That should excuse eth1 from having to login.

SDE