All of lore.kernel.org
 help / color / mirror / Atom feed
* iptables with alias again
@ 2002-10-07 17:41 Jeppe Sørensen
  2002-10-07 19:12 ` Antony Stone
  0 siblings, 1 reply; 4+ messages in thread
From: Jeppe Sørensen @ 2002-10-07 17:41 UTC (permalink / raw)
  To: netfilter

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: iptables with alias again
  2002-10-07 17:41 iptables with alias again Jeppe Sørensen
@ 2002-10-07 19:12 ` Antony Stone
  2002-10-07 19:22   ` Iptables tutorial Bishop
  0 siblings, 1 reply; 4+ messages in thread
From: Antony Stone @ 2002-10-07 19:12 UTC (permalink / raw)
  To: netfilter

On Monday 07 October 2002 6:41 pm, Jeppe Sørensen wrote:

> 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

It will apply to all of them.

Antony.

-- 

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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Iptables tutorial
  2002-10-07 19:12 ` Antony Stone
@ 2002-10-07 19:22   ` Bishop
  2002-10-07 19:30     ` Antony Stone
  0 siblings, 1 reply; 4+ messages in thread
From: Bishop @ 2002-10-07 19:22 UTC (permalink / raw)
  To: Antony Stone, netfilter

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.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Iptables tutorial
  2002-10-07 19:22   ` Iptables tutorial Bishop
@ 2002-10-07 19:30     ` Antony Stone
  0 siblings, 0 replies; 4+ messages in thread
From: Antony Stone @ 2002-10-07 19:30 UTC (permalink / raw)
  To: netfilter

On Monday 07 October 2002 8:22 pm, Bishop wrote:

> 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.

-- 

Software development can be quick, high-quality, or low-cost.

The customer gets to pick any two out of three.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-10-07 19:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-07 17:41 iptables with alias again Jeppe Sørensen
2002-10-07 19:12 ` Antony Stone
2002-10-07 19:22   ` Iptables tutorial Bishop
2002-10-07 19:30     ` Antony Stone

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.