Re: allowing ssh client from a certain subnet only

From: dawbins (dawbins_at_n0n0.com)
Date: 06/23/03


Date: Mon, 23 Jun 2003 08:56:40 GMT

openssh has tcpwrapper enabled by default

/etc/hosts.allow
ALL: xxx.yyy.

/etc/hosts.deny
ALL:ALL:DENY

to test if tcpwrapper is operational bu blocking one computer
/etc/hosts.allow
ALL: xxx.yyy. EXCEPT xxx.yyy.AAA.BBB
# where the EXCEPT IP is the specific IP of a computer in the xxx.yyy.
# network

and/or use iptables

pui ming Wong wrote:
>
> I run sshd as a daemon (not from inetd.conf)
> As a newbie, what are the stanzas in the sshd config file
> that could deny all client access EXCEPT from
> a certain network
> say, xxx.yyy (which is a Class B network)



Relevant Pages

  • Re: IronPython-0.6 is now available!
    ... object.callRemote('echo', 'hello network') ... blocking the whole thread. ... Obviously if you don't like callbacks you won't like twisted, ... in the background for an answer to a request, ...
    (comp.lang.python)
  • Re: Blocking Yahoo Messenger With Firewall??
    ... blocking unneeded access to sites (using a proxy ... >>server can help here), ... >>firewall is used to block access from outside. ... We have about 75 computers online on the network, ...
    (alt.computer.security)
  • Re: Networking over mains cables
    ... blocking just about every port except the basic ones needed to ... without blocking him completely it was useable. ... When entering a network key, ... allow the MAC addresses of the machines I know about. ...
    (comp.sys.acorn.networking)
  • Re: Blocking Yahoo Messenger With Firewall??
    ... >>wanting to sell a subscription service to go with the firewall. ... blocking unneeded access to sites (using a proxy ... >server can help here), ... We have about 75 computers online on the network, ...
    (alt.computer.security)
  • Odd performance problems after upgrade from 4.11 to 6.0-Stable
    ... all of the I/O is synchronous and the entire system is blocking on GIANT ... My network link only ran at 3.4 Mbps (yes, that's bits, not ... Bytes) over a 100 Mbps connection to the storage server. ... have examined my kernel configuration and found nothing out of the ...
    (freebsd-stable)