T
T
Timur Gromov2016-05-24 11:12:45
linux
Timur Gromov, 2016-05-24 11:12:45

How to redirect all outgoing vpn client requests to port 80 on localhost?

There is a server on Ubuntu Server on which pptpd is installed.
There is a PC on win7 that connects to a VPN server.
How to redirect all outgoing requests to port 80 from pc to localhost:80 vpn server?
Simply put, do you need to open a page on the localhost of the vpn server when you open any site?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Burov, 2016-05-24
@tmgrom

iptables -A PREROUTING -p tcp -m tcp --dport 80 -j DNAT --to-destination 192.168.0.1

192.168.0.1 - vpn server IP

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question