V
V
Valery Ivanov2015-01-05 17:49:33
linux
Valery Ivanov, 2015-01-05 17:49:33

Is it possible to block an ip address on one desired port in ubuntu?

Is it possible to block an ip address on one desired port in ubuntu? And How?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene, 2015-01-05
@valeragan

iptables -I INPUT -s 111.111.111.111 --dport 80  -j DROP

E
Ergil Osin, 2015-01-05
@Ernillew

man iptables
look for the dst port and dst address options.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question