Q
Q
qourshi2021-12-30 08:03:14
openvpn
qourshi, 2021-12-30 08:03:14

How to redirect from the client to the external network (OpenVPN)?

Hello.
I want to do port forwarding from the OpenVPN client (10.8.0.2) to the external network (1.1.1.1).
Tried many ways - didn't work.
I'm new to Linux, so please don't judge.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hint000, 2021-12-30
@hint000

iptables -A PREROUTING -d 1.1.1.1 -p tcp --dport НомерПорта -j DNAT --to-destination 10.8.0.2:НомерПортаМожноДругой

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question