Re: how can i combine these 2 iprules

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

 



On Friday 05 March 2004 6:27 pm, Technical wrote:

> -A RH-Firewall-1-INPUT ! -s cnnp1.com  -j LOG --log-prefix "IPTABLES: "
> -A RH-Firewall-1-INPUT ! -s cnnp2.com  -j LOG --log-prefix "IPTABLES: "

iptables -N mychain
iptables -A mychain -s cnnp1.com  -j RETURN
iptables -A mychain -s cnnp2.com  -j RETURN
iptables -A mychain -j LOG --log-prefix "IPTABLES: "
iptables -A RH-Firewall-1-INPUT -j mychain

Note that it is not recommended to use hostnames in netfilter rules - better 
to identify the IP addresses and put them in yourself, to avoid possibly 
hidden problems.

Antony.

-- 
Behind the counter a boy with a shaven head stared vacantly into space,
a dozen spikes of microsoft protruding from the socket behind his ear.

 - William Gibson, Neuromancer (1984)

                                                     Please reply to the list;
                                                           please don't CC me.



[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