I have a firewall running Ipchains with eth1 to the internet and eth0 to my internal network to be secured.
I need to run X on my firewall as I want to use it for system monitoring.
I have all ports closed and masquerade all traffic to the webb.
I cannot manage to shut down X (6000) on eth1 without shutting down Port 6000 on eth0 also. This is a problem since the following IPCHAINS command is supposed to only shut down X availability on eth1. I need to be able to have X working on eth0.
$IPC -A input -p tcp -s 0/0 -d 0/0 6000:6010 -i eth1 -j $STOP -l
$IPC -A input -p udp -s 0/0 -d 0/0 6000:6010 -i eth1 -j $STOP -l
If I run a portscanner against the two networks say 184.108.40.206(eth1) then Port 6000 should be closed, if I run a portascanner against 220.127.116.11(eth0) then I should see X(6000) open.
Is there ANY way I can do this with Ipchains? or do I misunderstand the chain above????