Re: Dynamic IP address in a rule?

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

 



Hello,

Paddie O'Brien a écrit :

My IP is dynamically assigned and I want a rule like this one:

iptables -I INPUT 1 -d my_ip_address  -m state --state NEW -j ULOG

Why ? What do you want to achieve exactly ?

Can a rule work out the IP address of its host?

What address ? A node may have more than one single address, and usually does : typically the loopback address range 127.0.0.0/8 and one or more addresses assigned to each "real" interface. If a packets arrives in the INPUT chain, it implies that its destination address is assigned to the node. Otherwise the packet is discarded if the node is a simple host, or sent in the FORWARD chain if the node is a router.
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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