Networking Forums

Networking Forums > Computer Networking > Linux Networking > use ipchains to block ports

Reply
Thread Tools Display Modes

use ipchains to block ports

 
 
pamela_tw@yahoo.com
Guest
Posts: n/a

 
      09-01-2007, 04:43 AM
hi there ,

I'm not familiar with linux firewall .
I tried to block port 6891 thru 6900 to disable msn messenger file
transfer.

following is the result of my linux ipchain -L :

Chain input (policy ACCEPT):
target prot opt source destination
ports
DENY tcp ------ anywhere anywhere
any -> 6891:6900
ACCEPT all ---f-- anywhere anywhere n/
a
acctin all ------ anywhere anywhere n/
a
acctboth all ------ anywhere anywhere n/
a
inp all ------ anywhere anywhere n/
a
Chain forward (policy DENY):
target prot opt source destination
ports
DENY tcp ------ anywhere anywhere
any -> 6891:6900
ACCEPT all ---f-- anywhere anywhere n/
a
fwd all ------ anywhere anywhere n/
a
Chain output (policy ACCEPT):
target prot opt source destination
ports
DENY tcp ------ anywhere anywhere
any -> 6891:6900
ACCEPT all ---f-- anywhere anywhere n/
a
acctout all ------ anywhere anywhere n/
a
acctboth all ------ anywhere anywhere n/
a
out all ------ anywhere anywhere n/
a
Chain acctin (1 references):
Chain acctout (1 references):
Chain acctboth (2 references):
Chain inp (1 references):
Chain out (1 references):
Chain fwd (1 references):
target prot opt source destination
ports
DENY udp ------ anywhere anywhere
any -> 6891:6900
DENY tcp ------ anywhere anywhere
any -> 6891:6900
DENY tcp ------ anywhere anywhere
any -> 6891:6900
DENY tcp ------ xxx.xxx.xxx.0/24 anywhere
any -> 6891:6900
DENY tcp ------ anywhere xxx.xxx.xxx.0/24
any -> 6891:6900
MASQ all ------ xxx.xxx.xxx.0/24 anywhere n/
a
MASQ all ------ anywhere xxx.xxx.xxx.0/24 n/
a
MASQ all ------ xxx.xxx.xxx.0/24 anywhere n/
a
MASQ all ------ anywhere xxx.xxx.xxx.0/24 n/
a


can anyone help me to block port 6891 thru 6900?
I tried and tried , but it just won't work?

please show me the right rule to block these ports.

any message from you will be appreciated.

tks .

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
use ipchains to block ports pamela_tw@yahoo.com Linux Networking 0 09-01-2007 04:43 AM
use ipchains to block msn messenger pamela_tw@yahoo.com Linux Networking 2 08-30-2007 01:01 PM
use ipchains to block msn messenger pamela_tw@yahoo.com Linux Networking 0 08-30-2007 09:33 AM
Block a range of ports remo Linux Networking 5 08-01-2005 02:45 AM
Newbie Q: How to open ipchains firewall to forward ports to XBox Live George Linux Networking 0 12-23-2003 06:49 PM



1 2 3 4 5 6 7 8 9 10 11