How can I on my ubuntu server, in Iptables only allow one IP adress on a specific port?
Thanks
|
|
|
One liner:
A more elegant solution:
|
|||||||||
|
|
Here's an example from one of my CentOS systems (addresses have been obfuscated):
|
|||
|
|
I use shorewall to configure IP table. Use a rule like to accept from one host to port 123. ACCEPT net:192.0.2.1 $FW tcp 1234 |
|||
|
|