Logging Aliased Interfaces.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



	I am running a firewall with multiple IPs aliased to the
external interface.  Each IP is forwarded to a virtual web in he DMZ.

	My problem is that it appears, unless I'm doing something wrong,
if the destination address is one of the aliased IPs I can only log and
assign rules in PREROUTING.  I have complex logging setup in some custom
chains, but cannot jump to them from PREROUTING nor assign rules to them
in any other chain.

Eth0		= 80.80.80.155
Eth0:1	= 80.80.80.156
Eth0:2	= 80.80.80.157
Network	= 80.80.80.152/29

	eth0's IP can jump to my user chains, but .156 and .157 cannot
which limits things.

iptables -A INPUT -p tcp --dport 111 -d 80.80.80.155 -i eth0 \
			-j LOG --log-prefix "SUN RPC: "
	This will LOG (if it was -j <USER CHAIN> it would jump)

iptables -A INPUT -p tcp --dport 111 -d 80.80.80.157 -i eth0 \
			-j LOG --log-prefix "SUN RPC: "
	This will not log (if it was -j <USER CHAIN> it would not jump)

iptables -A PREROUTING -p tcp --dport 111 -d 80.80.80.157 -i eth0 \
			-j LOG --log-prefix "SUN RPC: "
	This will LOG (it cannot be -j <USER CHAIN>...only LOG, DNAT and
DROP I think)
	
Is this enough to go on?  Thanks!

	Andy




[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux