on server, want ssh different port number other 22, set firewall accordingly allow out going traffic port 80, , allow couple client computers has static ip ssh.
checked http://www.iana.org/assignments/port-numbers
registered ports 1024-49151
, dynamic/private ports 49152-65535
has used dynamic/private port numbers ssh? or there specific unassigned registered port number set shoud use? preffered?
in addition how permit specific port open on firewall gufw? have ufw installed
server port 80, need allow incoming, , deny outgoing ???
checked https://help.ubuntu.com/community/ufw
need proper set up?
sudo ufw allow 80
sudo ufw allow 22(or whatever ssh port is)
found this. on terminal
i assuming 192.168.1.0/24 router set , 202.54.1.5/29 ip set servers. correct?-a rh-firewall-1-input -s 192.168.1.0/24 -m state --state new -p tcp --dport 22 -j accept
-a rh-firewall-1-input -s 202.54.1.5/29 -m state --state new -p tcp --dport 22 -j accept
how allow ip client , deny other ssh?
did overview link http://www.cyberciti.biz/tips/linux-...ractices.html; however, dont see part states block ip ssh except client
please, advise. thank much.
try sites :
http://techie-buzz.com/foss/change-d...-in-linux.html
http://ubuntuforums.org/showthread.php?t=253460
https://help.ubuntu.com/8.04/serverg...sh-server.html
in experience may need know open outgoing port of modem/gateway router. may need port forwarding.
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support New to Ubuntu [ubuntu] how to set up ssh on a different port number and firewall issues
Ubuntu
Comments
Post a Comment