LinuxQuestions.org
Help answer threads with 0 replies.
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 06-03-2004, 08:46 PM   #1
coindood
Member
 
Registered: Jan 2004
Distribution: FreeBSD, Slackware
Posts: 121

Rep: Reputation: 15
Kernel 2.4.26, slack 8.0: blocking outgoing traffic


I know you can block all outgoing traffic with iptables, but is there any other way of doing it?
 
Old 06-03-2004, 09:45 PM   #2
kbcnetau
Member
 
Registered: Dec 2003
Location: South Australia (ex-Devon, UK)
Distribution: SuSE, Slackware, Fedora, Debian, Knoppix
Posts: 141

Rep: Reputation: 15
Unplug the network cable :-)

Seriously, what are you trying to achieve?

If we literally prevented any packets from going out, we wouldn't be getting any in either, as TCP/IP is a two-way protocol.

Give us an idea of your application...
 
Old 06-03-2004, 09:54 PM   #3
coindood
Member
 
Registered: Jan 2004
Distribution: FreeBSD, Slackware
Posts: 121

Original Poster
Rep: Reputation: 15
I am creating a shell server, but I don't want any outgoing connections (like ssh, telnet, wget, ping, mail, etc) from working in case it gets compromised. Many shell servers do this.
 
Old 06-03-2004, 10:15 PM   #4
kbcnetau
Member
 
Registered: Dec 2003
Location: South Australia (ex-Devon, UK)
Distribution: SuSE, Slackware, Fedora, Debian, Knoppix
Posts: 141

Rep: Reputation: 15
Various servers can be individually configured to accept traffic from only specified hosts, but the firewall solution would be my preferred option for ease of management.

You may like to refer to this article on hosts.allow (and hosts.deny), which is used to control access to certain daemon processes:
<http://linux.about.com/library/cmd/b...osts.allow.htm>
 
  


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
Traffic shaping (limiting outgoing bandwidth of all TCP-traffic except FTP/HTTP) ffkodd Linux - Networking 3 10-25-2008 12:09 AM
Blocking outgoing TCP F M J Linux - Networking 13 09-06-2005 12:59 AM
Iptables - Redirecting Outgoing Traffic Frankablu Linux - Networking 1 06-12-2005 01:18 PM
Block outgoing traffic through router? Micro420 Linux - Networking 3 03-15-2005 07:01 AM
Blocking outgoing traffic from a specific port billy3 Linux - Security 10 09-24-2004 08:10 PM

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

All times are GMT -5. The time now is 03:38 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration