*nix Thread, restrinct access to certain ports on a server in Technical; Im running virtual box in headless mode, and the way it works is it starts a RDP server on a ...
12th May 2010, 01:47 PM #1
restrinct access to certain ports on a server
Im running virtual box in headless mode, and the way it works is it starts a RDP server on a specified port for you to RDP to. I want to access these virtual machines remotely, so I have forwarded the relevent ports in the modem/router. However this offers no authentication, and will let anyone get straight to the Login screen. Im a bit worried that Ive forgot to lock the screen a couple of times and others have been able to get into my VMs. Logs from the router/modem show connecitons on the RDP ports. Im not too sure how to tell if they were just scans of if they were able to get right through to the desktop (anything i can check in either the guest windows logs or the host linux logs?)
So what I want to do, is some sort of IP based restriction for these RDP ports.
Do i just add the ports and the allowed IP(s) to hosts.allow ? Is it as simple as that? Or do I need to implement IP tables? I dont want to lock down the whole box as I will need to ssh/squid/openvpn in from any random IP
27th May 2010, 04:20 AM #2
Thanks to powdarrmonkey for the above
robert@oasis ~ $ sudo iptables -A INPUT -p tcp -s IP_ADDRESS_TO_ALLOW --dport 3388:3392 -j ACCEPT
robert@oasis ~ $ sudo iptables -A INPUT -p tcp -s ANOTHER_IP_ADDRESS_TO_ALLOW --dport 3388:3392 -j ACCEPT
robert@oasis ~ $ sudo iptables -A INPUT -p tcp --dport 3388:3392 -j DROP
By leco in forum How do you do....it?
Last Post: 23rd January 2010, 06:34 PM
By Admiral208 in forum Windows
Last Post: 14th September 2008, 07:06 PM
By speckytecky in forum Wireless Networks
Last Post: 11th June 2008, 01:24 PM
By AnnDroyd in forum Thin Client and Virtual Machines
Last Post: 3rd October 2007, 08:59 AM
By edie209 in forum Windows
Last Post: 23rd June 2006, 03:47 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)