LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 11-09-2001, 12:42 PM   #1
munisp
LQ Newbie
 
Registered: Nov 2001
Posts: 20

Rep: Reputation: 0
Sample Working ipchain that allows http,ftp,ssh for internal and external network


Can anyone provide me with working ipchain example that allows http,ftp,dns, and ssh for internal and external(incoming requests) networks. Also, instruction of how to setup it up on Redhat7.1 will be greatly appreciated.

thanks
Patrick
 
Old 11-09-2001, 05:49 PM   #2
dangel
Member
 
Registered: Nov 2001
Location: atl
Distribution: redhat
Posts: 52

Rep: Reputation: 15
there is a ton of documentation on line for ipchains. (linuxhq.org - firewall howto)
but this *may* get you started

set the POLICY:
ipchains -P input DENY
ipchains -P output DENY
ipchains -P forward DENY
---
set the rules

ipchains -A input -p tcp --dport 80 -j ACCEPT
ipchains -A input -p udp --dport 53 -j ACCEPT
ipchains -A input -p udp --dport 20 -j ACCEPT
ipchains -A input -p udp --dport 22 -j ACCEPT

etc, etc.
---
easiest thing to do is create a script called rc.firewall (make it executalbe : u+x also hope you know how to make a script. ie #!/bin/bash at top when your typing this into a file you created named rc.firewall) then you can edit the /etc/rc.d/rc.local file and put :
/etc/rc.d/rc.firewall
at the very bottom after everything else and wholla!

BUT
check this link out
i'm lazy and don't want to type anymore :P~

http://www.linux.com/howto/IPCHAINS-HOWTO-2.html
 
  


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
http works, ssh too, ftp won't :\ ilhbutshm Linux - Networking 4 11-15-2004 12:08 AM
Detecting the external IP address of an internal network: JohnLocke Linux - Newbie 17 07-22-2004 04:08 PM
http+ftp+ssh +quota katmai90210 Linux - Security 2 02-04-2004 04:52 PM
SuSe 7.0 not communicating with Network (internal or external) jmnovak Linux - Networking 1 02-27-2002 11:52 AM
accessing box from internal network but not from external JereBear Linux - Networking 12 05-12-2001 01:12 AM


All times are GMT -5. The time now is 04:39 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration