[olug] Rule to open ssh

Todd Nelson tnelson at mail.unomaha.edu
Wed May 14 16:04:50 UTC 2003


   Daryl,

   Below is a command that will open a port for ssh.  Normally, it runs on
port 22 - if you change that in the server daemon, then you'll need to
change that below.  Also, pay attention to the network card (I like to
explicitly state it - eth0)!  Good luck.

   iptables -A INPUT -i eth0 -p tcp -m multiport --dport 22 -j ACCEPT

{-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-}
 }                                mailto:tnelson at mail.unomaha.edu  {
{           Todd D. Nelson                   Phone: (402)554-4973   }
 }      Systems Administrator                  Fax: (402)554-3541  {
{    Univ Affairs & Communications                                  }
 }  University of Nebraska at Omaha                                {
{-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-}


                                                                                                                                       
                      drose.SCANTRON at sc                                                                                                
                      antron.com               To:       olug at olug.org                                                                 
                      Sent by:                 cc:                                                                                     
                      olug-bounces at olug        Subject:  [olug] Rule to open ssh                                                       
                      .org                                                                                                             
                                                                                                                                       
                                                                                                                                       
                      05/14/2003 10:57                                                                                                 
                      AM                                                                                                               
                      Please respond to                                                                                                
                      Omaha Linux User                                                                                                 
                      Group                                                                                                            
                                                                                                                                       




My firewall is a RH 7.3 machine using iptables.  I've never been good at
figuring out the rules, so I use a script to setup my rules.  This works
fine, but I want to open ssh, on an obscure port, so I can get in while at
work.

Can someone tell me how to configure the rule?

Thanks.

Daryl Rose
Scantron Service Group
Unix Support Specialist
drose at scantron.com
1-800-228-3628 x3061


_______________________________________________
OLUG mailing list
OLUG at olug.org
http://lists.olug.org/mailman/listinfo/olug






More information about the OLUG mailing list