Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-09-2001, 01:42 PM   #1
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.

Old 11-09-2001, 06:49 PM   #2
Registered: Nov 2001
Location: atl
Distribution: redhat
Posts: 52

Rep: Reputation: 15
there is a ton of documentation on line for ipchains. ( - 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 :
at the very bottom after everything else and wholla!

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


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

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

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