Re: restrict ssh, allow all others?
Andrew Schulman <[email protected]>
| Newsgroups | gmane.comp.security.firewalls.firehol.user |
|---|---|
| Message-ID | <[email protected]> |
> Is there a way to make a firehol config that will let me allow only a few > specific IPs to connect to ssh, but then leave all other ports open? > > As best I can tell there's only 2 ways to configure firehol: > > Option 1: > client all accept > server all accept > > (which does not permit me to restrict ssh to certain IPs) > > > or Option 2: > to manuall allow each individual service one at a time, for every port. > > I need a method that will let me restrict ssh while leaving the rest open. > > Is that possible? server ssh accept src x.x.x.x server ssh accept src y.y.y.y server ssh reject server all accept The rules are followed in order down the chain, with the first one that applies taking effect. So I believe this will do what you want. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev