[Shorewall-users] REDIRECT after ACCEPT
litinoveweedle at quick.cz
Wed Mar 3 15:39:40 PST 2004
I looking for possibility how to handle this case.
I have 2 interfaces on my router. One is conected to local network,
second to internet. I have NAT set properly. I have several several
subnets in my local network.
I have some users at my local network. I generate ACCEPT rules to permit
traffic from theirs IP addreses to internet. For the rest of non listed
IP addresses I want redirect rule - redirect traffic originaly destined
to port 80 proto TCP to firewall itself, port 80.
I created redirect rule. Problem is, that this rule is proccessed in
prerouting chain and ACCEPT rules are proccesed in forwarding chain.
It means that all traffic destined to port 80 is redirected to the
network, doesn't matter on source ip.
Then I tried to exclude permited IP from redirect rule by
syntax. Unfortunately seems that my rule:
3.24/32,192.168.150.226/32 80 tcp http -
won't work - it can't be proccesed by shorewall - probadly because after
exclude sign - !there should be hosts listed from /etc/shorewall/hosts
But také a look how many ip I need to redirect. And there are changing
dynmicaly. So I don't want to fill hosts file each time.
I probably missed some elagant solution how to handle this case. Please
can you help me to find it out?
Thank you. Regards litin
More information about the Shorewall-users