Re: Restricting IP addresses from ports

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

put the policy of the chain to DROP and the put rules to accept those ports..
so for INPUT:
iptables -P INPUT DROP
iptables -A INPUT -s 1.1.1.1 -p tcp --dport 22 -j ACCEPT
iptables -A INPUT -s 1.1.1.1 -p tcp --dport 25 -j ACCEPT
...
On Wednesday 26 February 2003 18:13, Bob wrote:
> (I apologize if this message shows up twice.  My system crashed as I was
> sending it off the first time and I don't see it on the list...)
>
>   How do I allow a specific IP address access to a port like SSH?  I want
> to deny all access to ports on a system that I manage except for specific
> addresses.
>
>   Thanks!
>    Bob

- -- 
Negrea Mihai
http://www.negrea.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+W5Kw8hhhNOp8KlQRAvG0AKCiOsAn0xAn+ktpXaWyG+4Jr/QJrACfagKX
vXWQN3689Y4JTacDTbXoUXc=
=kCPG
-----END PGP SIGNATURE-----




[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux