Help - Search - Members - Calendar
Full Version: Firewall/routing Question
Linuxhelp > Support > Technical Support
Elfstone
Hi all,

I want to set my box up so that it will only accept connects on certain ports(i.e. SSH, FTP, etc.) from only certain IP addresses. Being a bit of a newb, I'm not entirely sure how to go about this, though I am pretty sure it's possible. A solution or pointing me in the right direction of the solution would be greatly appreciated.

Thanks smile.gif
Joey
theres iptables firewall scripts on the guides page. that would be a good start.
Elfstone
Thanks a lot, that looks like it'll do it. Will have to mess around with it later tonight. cool.gif
Elfstone
Just an update, set everything up and its working perfectly, thanks again for the quick response.
Joey
Glad to hear it and you're very welcome.
snabber
Try the /etc/hosts.allow and hosts.deny.
put lines like:
ssh:<iprange>
ftp:<iprange>

in hosts.allow and a line like:
ALL:ALL

in hosts.deny. Of cource, replace <iprange> with the range to allow. I think this will work.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.