LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-28-2003, 09:47 AM   #1
juanb
Member
 
Registered: May 2002
Posts: 401

Rep: Reputation: 30
ipchains


Hi !!

I use RH as a mail relay.

I want to allow incoming smtp and outgoing smtp also outgoing dns and dns replays.what are the rules I need and which file I need to configure?

thanks
 
Old 12-28-2003, 04:22 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,575

Rep: Reputation: 181Reputation: 181
It depends on your script (probably /etc/init.d/firewall), but usually it requires you to add something like:
Code:
ipchains -A INPUT -p tcp --dport smtp -j ACCEPT
ipchains -A INPUT -p tcp --dport domain -j ACCEPT
ipchains -A INPUT -p udp --dport domain -j ACCEPT

ipchains -A OUTPUT -p tcp --sport smtp -j ACCEPT
ipchains -A OUTPUT -p tcp --sport domain -j ACCEPT
ipchains -A OUTPUT -p udp --sport domain -j ACCEPT
 
  


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
Ipchains brokenflea Linux - Networking 1 02-03-2004 06:44 AM
ipchains i.d. Linux - Security 5 08-21-2002 03:12 PM
ipchains help ... please> paulw Linux - Security 3 11-16-2001 11:15 AM
IpChains again ETT Linux - Security 3 07-24-2001 08:49 AM
[ipchains] MrGreg Linux - General 4 07-15-2001 12:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:43 PM.

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