Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-07-2002, 06:11 PM   #1
LQ Newbie
Registered: Dec 2001
Posts: 27

Rep: Reputation: 15
New to LINUX - Need some help with IP

I know this is probably in the wrong forum but I have set-up a new Smoothwall as a DSL firewall...things are going fine BUT I need to block access from the network to certain IP addresses and also block certain IPs coming in.
I know that it is something to do with Ipchains/tables but cannot make any sense of them, please help


Old 05-08-2002, 08:53 AM   #2
Registered: Feb 2002
Location: Turkiye
Distribution: Pardus
Posts: 147

Rep: Reputation: 16
Well here is a simple iptables rule

iptables -A INPUT -p tcp --source ! --dport 631 -j REJECT --reject-with tcp-reset

These block all incoming TCP connections at port 631 ( default cups server port ) if the source is not localhost. You can get much more complex examples @ documentation section.
Old 05-08-2002, 05:17 PM   #3
LQ Newbie
Registered: Dec 2001
Posts: 27

Original Poster
Rep: Reputation: 15
Cartman, thanks, but I seem to have ipchains....
What I am trying to do is block ALL ports from and to a certain IP, can that be done?



Old 05-11-2002, 12:17 AM   #4
LQ Newbie
Registered: Feb 2002
Posts: 27

Rep: Reputation: 15
try this link


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
link dies intermittently-seemingly at random- between win<->linux not linux<->linux?? takahaya Linux - Networking 10 03-09-2007 10:37 PM
triple boot linux/linux/linux No Windows involved toastermaker Linux - Newbie 12 03-02-2006 10:40 PM
Redhat (rhel v2.1) bootup problem with linux (linux vs linux-up) namgor Linux - Software 2 06-24-2004 02:49 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:47 AM.

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