Log in

Bekijk de volledige versie : Firewall and ssh configuration



trymyluck
02-12-2008, 09:35
Hi there,

could anybody help me with the iptables command for the ssh service?
I need to set my firewall to access shh from WAN using port 443 and from LAN (my PC at home) using port 22.
If you wonder why, because port 22 is block at my work :(

Best regards,
T.

trymyluck
05-12-2008, 09:45
guys, is there anyone here, that could help me?!

Beowulf
09-12-2008, 02:00
I think you just have to add the following line in the /usr/local/sbin/post-firewall directly after "#!/bin/sh":


iptables -I INPUT -m tcp -p tcp --dport 443 -j ACCEPT

and in the /usr/local/sbin/post-boot:

dropbear -s -p 443

trymyluck
09-12-2008, 09:03
Many thanx man...
I will try it, when I get home ;-)