T
T
Timur Gromov2016-05-23 23:26:32
linux
Timur Gromov, 2016-05-23 23:26:32

How to deny outgoing connections to port 80 on PCs connected to a PPTPD based VPN in Ubuntu Server?

There is a server on Ubuntu Server on which pptpd is installed.
There is a PC on win7 that connects to a VPN server.
The task is to prohibit the connected PC from accessing the Internet on port 80.
Added a rule:
iptables -A OUTPUT -j REJECT -p tcp --dport 80
As a result, outgoing connections to port 80 were closed on the server, but not on the PC connected to this server.
Please tell me how this can be done.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mystray, 2016-05-23
@tmgrom

Why did you add it to OUTPUT? This is the chain for outgoing from the server itself.
You need to add to FORWARD, and also specify the outgoing, for example, interface or address range, so as not to kill all transit traffic on port 80 at all.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question