LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-11-2006, 11:51 AM   #1
deleted/
LQ Newbie
 
Registered: Sep 2005
Location: Ireland
Distribution: FC5
Posts: 14

Rep: Reputation: 0
Simple iptables question


When following a step by step guide for setting up Azureus it gave an instruction to open udp port 6972 using the command below.

/sbin/iptables -I INPUT -p udp --destination-port 6972:6972 -j ACCEPT

If i wanted to reverse this how would i go about it.

Note: I have no clue about iptables but do plan to get one soon!

Stephen.
 
Old 05-11-2006, 11:56 AM   #2
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849

Rep: Reputation: 33
/sbin/iptables -I INPUT -p udp --destination-port 6972:6972 -j DROP

Is that what you're looking for?
 
Old 05-11-2006, 12:04 PM   #3
deleted/
LQ Newbie
 
Registered: Sep 2005
Location: Ireland
Distribution: FC5
Posts: 14

Original Poster
Rep: Reputation: 0
So this drops any packets on this port?
 
Old 05-11-2006, 12:20 PM   #4
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849

Rep: Reputation: 33
Yes. ACCEPT accepts packets. DROP drops them. I wrote a small piece on iptables. here
 
Old 05-11-2006, 12:31 PM   #5
deleted/
LQ Newbie
 
Registered: Sep 2005
Location: Ireland
Distribution: FC5
Posts: 14

Original Poster
Rep: Reputation: 0
Brilliant. Thanks a lot and the guide is gonna come in real useful.

Last edited by deleted/; 05-11-2006 at 12:40 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with iptables, and a simple question about a NTFS part. Jorek Linux - Newbie 2 12-30-2005 03:05 PM
Ubuntu Fluxbox simple question, simple answer? generallimptoes Linux - Software 3 09-26-2005 03:03 PM
Installing Programs - A simple question from my simple mind jmp875 Linux - Newbie 6 02-18-2004 10:03 PM
Iptables newbie / simple question wr3ck3d Linux - Networking 2 03-06-2003 09:08 AM
Simple iptables DNAT question taylor Linux - General 0 10-02-2001 07:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration