LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-06-2004, 12:13 AM   #1
fooforon
Member
 
Registered: Sep 2003
Posts: 37

Rep: Reputation: 15
IPTABLES blocking imcp and telnet HELP!!


Hi,

I have been reading up on IPTABLES and Im still quite confused, I working on this personal project just for fun and got stuck.

I have three machins

win2k(192.168.0.3)<-->(192.168.0.1)redhat8.0(150.149.0.1)<-->win2ksrv (150.149.0.2)

the redhat machine is acting as a router and I would like to stop icmp packets and telnet port 23

This is where im stuck at

iptables -A INPUT -m tcp ..... something about port 23
iptables -A INPUT -m icmp ..... icmp

any help would be greatly appericated

Jamie
 
Old 04-06-2004, 12:22 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
iptables -A INPUT -p TCP -s 0/0 --destination-port 23 -j DROP

iptables -A INPUT -p ICMP -s 0/0 --icmp-type 8 -j DROP
 
Old 04-06-2004, 06:07 AM   #3
fooforon
Member
 
Registered: Sep 2003
Posts: 37

Original Poster
Rep: Reputation: 15
Thank you
 
Old 04-06-2004, 02:35 PM   #4
bentman78
Member
 
Registered: Mar 2003
Location: Washington DC, USA
Distribution: Redhat
Posts: 212

Rep: Reputation: 30
you can block and enitire port range too. That is better than trying to acutally set up rules to block each and every porotocol.
 
  


Reply



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
blocking an IP using iptables picox Linux - Security 7 12-10-2010 02:00 PM
iptables is blocking sites... The_wave Linux - Networking 9 09-09-2005 04:44 PM
Blocking telnet on open ports rabeea Linux - Security 2 08-13-2004 08:03 AM
Blocking Iptables Ranges SuperSadSmile Linux - Security 6 02-09-2004 02:57 AM
Blocking Kazaa with Iptables, Anyone? markng Linux - Security 6 06-27-2003 06:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:32 AM.

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