menu

arrow_back How do I redirect the client to an external network (OpenVPN)?

by
1 vote
Hi.
I want to forward ports from the OpenVPN client (10.8.0.2) to an external network (1.1.1.1).
Tried many ways - it did not work.
I am new to Linux, so please do not judge.

2 Comments

You don't need to do "port forwarding". You need to configure routing and/or NAT and allow VPN traffic in the firewall.
What does this have to do with linux? And it's not quite clear what the task is, give me an example

1 Answer

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