valerian
8th October 2007, 13:21
Hi all,
New user here. I'm running Ubuntu server 6.06 as a server on a remote VPS, and have configured iptables using the 'Linux firewall' feature of Webmin. It seems to do what I want, allowing public access to ports 80,81 and 443, and restricting port 22 access to my home and work ip addresses.
Unfortunately my home ip address recently switched from static to dynamic, and although I've registered a DynDNS domain name for my home ip address, I can't get iptables to accept a hostname rather than an ip address (a security feature I imagine).
Is it feasible (and safe) to configure iptables to allow all addresses to access port 22, but also specify my hostname in a /etc/hosts.allow file:
sshd : <my.hostname> : allow
Or is there a better way, perhaps exploiting ping? Thanks.
New user here. I'm running Ubuntu server 6.06 as a server on a remote VPS, and have configured iptables using the 'Linux firewall' feature of Webmin. It seems to do what I want, allowing public access to ports 80,81 and 443, and restricting port 22 access to my home and work ip addresses.
Unfortunately my home ip address recently switched from static to dynamic, and although I've registered a DynDNS domain name for my home ip address, I can't get iptables to accept a hostname rather than an ip address (a security feature I imagine).
Is it feasible (and safe) to configure iptables to allow all addresses to access port 22, but also specify my hostname in a /etc/hosts.allow file:
sshd : <my.hostname> : allow
Or is there a better way, perhaps exploiting ping? Thanks.