Networking Forums

Networking Forums > Computer Networking > Linux Networking > Redhat firewall (ES4) iptable configuration help

Reply
Thread Tools Display Modes

Redhat firewall (ES4) iptable configuration help

 
 
tractng@gmail.com
Guest
Posts: n/a

 
      07-17-2007, 05:02 PM
Guys,

Anways, lets say the server has an IP address of xx.xx.181.100 and I
like to have other pcs with IP xx.xx.185.xx access via ssh when the
firewall is on. What do i need to do? Below is the iptables.

I am talking about the entry for ssh where I changed to port 55 (last
line). Right now, only the machines on xx.xx.181.xx can access it.

thanks so much,
Tony

# Firewall configuration written by system-config-securitylevel
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -p 50 -j ACCEPT
-A RH-Firewall-1-INPUT -p 51 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp --dport 5353 -d 224.0.0.251 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m udp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -
j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 443 -
j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 55 -
j ACCEPT
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
COMMIT

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Redhat firewall (ES4) iptable configuration help tractng@gmail.com Linux Networking 0 07-17-2007 05:02 PM
Redhat firewall (ES4) iptable configuration help tractng@gmail.com Linux Networking 0 07-17-2007 05:02 PM
Urgently ! need help about iptable and internet gateway/firewall Pratchaya Linux Networking 1 01-25-2006 02:13 PM
IPTABLE: using same port for 2 PC behind firewall (linux-box) Nicola Linux Networking 6 10-07-2004 09:24 AM
Redhat 9 & iptable and adsl modem setup question i arit Linux Networking 1 11-02-2003 01:17 AM



1 2 3 4 5 6 7 8 9 10 11