M
M
mr_mescaline2015-12-30 14:37:48
Apache HTTP Server
mr_mescaline, 2015-12-30 14:37:48

Close port 80?

there is a server, several ip, sites sit on some, on one vpn. if you drive in the vpna address (via the web) - the site opens. although the dns does not point any of the sites to this ip.
how can you close port 80, through iptables for this particular ip (ip vpna - do not touch others), no matter what is available from outside?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
protven, 2015-12-30
@protven

Raise the 80th port only on the necessary ip, for example. Apache allows you to do this.

M
Maxim, 2015-12-30
@maxloyko

# /sbin/iptables -A INPUT -p tcp -i eth1 -s ! 1.2.3.4 --dport 80 -j DROP

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question