iptables with alias again
Hello
If I have a interface with e.g. 3 alias
eth0
eth0:0
eth0:1
eth0:2
will this following rules apply on only eth0 and not eth0:0, eth0:1 and eth0:2 or will it apply on all of them
iptables -A INPUT -i eth0 --dport 80 -j ACCEPT
iptables -A INPUT -i eth0 -j DROP
e.g If I get a packet on eth0:1 will the packet get ACCEPT if it is for port 80 or do I have to make a rule for all the alias where I use the alias ip instead of the -i eth0 option?
Jeppe Sorensen
Quoted 7 lines · Jeppe Sørensen
Hello
If I have a interface with e.g. 3 alias
eth0
eth0:0
eth0:1
eth0:2
Quoted 5 lines
will this following rules apply on only eth0 and not eth0:0, eth0:1 and eth0:2 or will it apply on all of them
iptables -A INPUT -i eth0 --dport 80 -j ACCEPT
iptables -A INPUT -i eth0 -j DROP
It will apply to all of them.
Antony.
Signature · 3 lines
Having been asked to provide a reference for this man, I can confidently state that you will be very lucky indeed if you can get him to work for you.
Iptables tutorial
Hello all,
I'm a newbie to the linux world. I download red hat 8.. I notice to
setup a firewall you have to use iptables. Does anyone know a good site or url that I may take a look at. I need something simple that I could understand, since I'm a newbie , something like "firewall for dums" ....
Thank you all for your help.
Re: Iptables tutorial
Quoted 6 lines · Bishop
Hello all,
I'm a newbie to the linux world. I download red hat 8.. I notice to
setup a firewall you have to use iptables. Does anyone know a good site or url that I may take a look at. I need something simple that I could understand, since I'm a newbie , something like "firewall for dums" ....
I recommend Oskar Andreason's tutorial at:
http://iptables-tutorial.frozentux.net
Antony.
Signature · 3 lines
Software development can be quick, high-quality, or low-cost. The customer gets to pick any two out of three.