LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-01-2005, 08:52 PM   #1
gongli
Member
 
Registered: Apr 2003
Posts: 32

Rep: Reputation: 15
iptable reject non ssh from ethernet card?


hi

i was wondering if anyone can tell me the proper way in debian testing 2.6 to write a simple iptable configuration which would cause any traffic from the ethernet card to any port other than 22 to "disappear." i dont know iptables, and i dont know where in the debian startup scripts this would go. im using the cryptographic filesystem package which exports / to localhost and i dont want any such thing (nor other services which appear, including printer/daytime/discard and other things) to be visible from the other side of my ethernet card; however i would like it to be visible for locally generated traffic.

thanks a lot
-gong
 
Old 02-02-2005, 10:43 AM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Have a read of this big tutorial.. http://iptables-tutorial.frozentux.n...-tutorial.html

There are scripts at the end you can "massage"..
 
  


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
Suse 9.0 doesn't detect Ethernet card on nVidia shipset 2, on-board card Realtek 8201 devilpim Linux - Newbie 3 05-27-2006 12:08 AM
Ethernet card on laptop: I installed my D-Link ethernet card into Redhat 9, not detec brighamr Linux - Hardware 0 05-18-2004 12:33 AM
how to set up SMC EZ Card 10/100 ethernet PCI network card mymojo Linux - Networking 2 12-16-2003 02:35 AM
Insert scsi pcmcia card kills existing ethernet card lgetsche Linux - Hardware 0 11-12-2002 04:16 PM
Can't network pcmcia card with Intel eepro100 ethernet card. RKris Linux - Networking 1 06-18-2002 12:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 02:15 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