noob question about IPtables
I'm a long time lurker here, but finally couldnt find an answer so had to sign up. :P
I'm helping a friend set up a server online and I'm learning as I go, but one thing has me sorta stumped.
I'm trying to restrict non local access to certain ports from certain IPs.
Example, I want to set up a whitelist so that only say 123.45.67.89 can connect to the server on port 21, and all other connections to port 21 are refused.
I've searched and found ways to whitelist a port to all IPs, and ways to whitelist all IPs to a port, but not how to whitelist a single IP - port combo.
Taken one step further, since he has a dynamic IP with his ISP, how can I whitelist a range of IPs to a single port. say 123.45.67.*
Any help would be greatly appreciated.
Last edited by velvetpipes; 09-16-2010 at 10:21 PM.
Reason: spelling corrections
|