Trouble with --dport

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

 



On Monday 21 October 2002 9:48 pm, Ivan Rodriguez Aguilar wrote:

> On Mon, 2002-10-21 at 15:27, Antony Stone wrote:
> > On Monday 21 October 2002 9:12 pm, blah blah wrote:
> > > I am having trouble with the following lines:
> > >
> > > -A INPUT -i eth0 -p tcp -s 1.1.1.1 --dport 1234 -j
> > > ACCEPT
> > > -A INPUT -i eth0 -p tcp -s 1.1.1.2 --dport 1233 -j
> > > ACCEPT
>
> Yes the protocol what is tcp or udp ??
> example
>
> iptables -A INPUT -i eth0 -p tcp -s 1.1.1.1 -p tcp --dport 1234 -j
> ACCEPT

Why put "-p tcp" twice ?

The order of "-p tcp" and "-s 1.1.1.1" doesn't matter.

Antony.

-- 

In science, one tries to tell people
in such a way as to be understood by everyone
something that no-one ever knew before.

In poetry, it is the exact opposite.

 - Paul Dirac



[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