Packages
ID #1109
What do I have to do to make OpenSSH open for the internet?
By default (like all good packages) the OpenSSH server is closed to the internet side of your FREESCO box. This is done by adding a firewall rule on the port of the OpenSSH server (default port 22).
To remove this firewall rule, you'll have to edit the rc_opensshd script and comment out the firewall line.
For FREESCO 0.3.x:
- login as root via telnet/console/SSH, and type the next command:
- edit /pkg/rc/rc_opensshd
- locate the next code (you may have to scroll down a bit):
firewall) |
- Change it into this:
firewall) |
- save the changed file
- type command: rc_masq restart
- the firewall is now reloaded and OpenSSH should be accessible over the internet.
For FREESCO 0.2.7
- login as root via telnet/console/SSH, and type the next command:
- edit /rc/rcuser/rc_opensshd
- locate the next code (you may have to scroll down a bit):
if [ "$1" = firewall ]; then #comment out the next lines to make sshd worldwide accessible echo -n "Block opensshd connection from inet...I" [ "$ENAMSQ" = y ] && ipfwadm -I -a reject -P tcp -W $INET -D 0.0.0.0/0 $PORT -y |
- edit the script so it looks like this:
if [ "$1" = firewall ]; then #comment out the next lines to make sshd worldwide accessible #echo -n "Block opensshd connection from inet...I" #[ "$ENAMSQ" = y ] && ipfwadm -I -a reject -P tcp -W $INET -D 0.0.0.0/0 $PORT -y |
- save the changed file
- type command: rc_masq restart
- the firewall is now reloaded and OpenSSH should be accessible over the internet.
Tip: if you use the 'joe' editor, make sure to delete the backup copy rc_opensshd~ file, because that file is also executable and will get executed by the rc_masq script and thus port 22 is still blocked!
Last update: 2004-11-27 17:48
Author: Dingetje
Revision: 1.0
Print this record
Send to a friend
Show this as PDF file
Export as XML-File
You cannot comment on this entry