Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Michael K" <micke@klintan.se>
To: netfilter@lists.netfilter.org
Subject: RE: Source Port
Date: Tue, 15 Apr 2003 17:22:34 +0200	[thread overview]
Message-ID: <001101c30362$d75d4c40$0200a8c0@klintan.local> (raw)
In-Reply-To: <1050404537.1482.19.camel@india>

[-- Attachment #1: Type: text/plain, Size: 1605 bytes --]

 

-----Original Message-----
From: netfilter-admin@lists.netfilter.org
[mailto:netfilter-admin@lists.netfilter.org] On Behalf Of Dharmendra.T
Sent: Tuesday, April 15, 2003 1:02 PM
To: netfilter@lists.netfilter.org
Subject: Source Port


Hi Everyone, 

I am a regular reader of this list and I have absorbed that most of the
users won't use the source ports in their rules. Say for ex, 

#iptables -A INPUT -s 192.168.1.0/24 -p tcp -d 0/0 --dport 23 -j ACCEPT 

In these kind of rules they will not specify the source port from 1024
to 65545. I strongly recommend all Linux Users to specify the exact
rules what is allowed and what is not allowed. 

Any Comments? This could be a good practise? 


-- 

Regards

Dharmendra.T





This message is intended for the addressee only. It may contain
privileged or Confidential information. If you have received this
message in error,please notify the sender and destroy the message
immediately.Unauthorised use or reproduction of this message is strictly
prohibited.

 
If you have a personal firewall (only INPUT, OUTPUT) and only ONE ip.
It's not nesecary to put --source. However if you have more than ONE ip
you could have use for the --source and --sport.
Myself always add stronger rules to my firewall using --sport --source
--destination --dport --in-interface --out-interface. And ending up with
more rules  :-(. 
I think that adding stronger rules-set make hacking harder. But will add
more administrations to the firewall.
Ex. Adding strong firewall rules to smb is a pain. But thanks to the
--state the numbers of rules will be shortend.
 
/Klintan

[-- Attachment #2: Type: text/html, Size: 3194 bytes --]

  parent reply	other threads:[~2003-04-15 15:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-15 11:02 Source Port Dharmendra.T
2003-04-15 11:11 ` Raymond Leach
2003-04-15 12:50   ` Dharmendra.T
2003-04-15 15:22 ` Michael K [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-04-16  7:26 Julian Gomez
2003-04-16 10:07 ` Michael K
2003-04-16 11:12   ` Dharmendra.T

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='001101c30362$d75d4c40$0200a8c0@klintan.local' \
    --to=micke@klintan.se \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox