How to Route outbound traffic through an OpenVPN Tun drive with SoftEther Server manager on linux

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
Sam199
Posts: 3
Joined: Sat Oct 15, 2022 10:18 am

How to Route outbound traffic through an OpenVPN Tun drive with SoftEther Server manager on linux

Post by Sam199 » Sun Jan 29, 2023 8:27 pm

The setup is like this :

Ubuntu server has two virtual network interfaces :

eth0 (which with this connects to internet)

Tun0 (Which is created with Openvpn connection which is using the following config to not tunnel the whole device and a set range of IPs)

route-nopull

route 10.0.0.0 255.0.0.0

and EtherSoft server is running With secureNAT enabled and DHCP server giving out IPs in the range of 192.168.30.1 - 192.168.30.200 255.255.255.0

and the default gateaway with the created interface using SoftEther server will be 192.168.30.1

so How do I make clients traffic ( that are connected to the server through eth0) to be forwarded to OpenVPN connection so like the clients are connected to that OpenVPN server while they connect to the original IP of the server

PS : net ipv4 forward is enabled


Post Reply