--- Wade Preston Shearer <[EMAIL PROTECTED]> wrote: > Alright, so I followed everyone's advice and a tutorial I found > [1] and locked things down much tighter. After changing the ssh > port I am unable to log in though. I restarted the sshd daemon > and opened that port in iptables. > > I am trying to log in with: > > ssh -p <new port> <user>@<server> > > > The command that I tried to use to open the port is: > > /sbin/iptables -A INPUT -p tcp --syn --destination-port <new> port -j ACCEPT > /sbin/iptables -A INPUT -p tcp --syn -j DROP > > > A friend said that FC3's are in /etc/sysconfig/ though, so I tried: > > /etc/sysconfig/iptables -A INPUT -p tcp --syn --destination-port 22 - j ACCEPT > /etc/sysconfig/iptables -A INPUT -p tcp --syn -j DROP > > but get a permission denied error which is strange because I > was running the command as root.
The iptables file in /etc/sysconfig is a configuration file, not an executable. /sbin/iptables is the correct binary, IIRC. /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
