Score:0

Forward second external IP from server to openvpn client

us flag

I have below situation: SERVER --- openvpn connection --- MIKROTIK (inside NAT - mobile connection)

Server has assigned second exter IP which is totally unused at this moment so I've decided to fully forward traffik from this server to MIKROTIK to have external IP at home.

Currently I've configured OpenVPN:

  • server 10.8.0.1 with external 1.2.3.4 and port 1194/tcp
  • client 10.8.0.4 And connection between client and server works fine. Now it's time for main question

How to configure iptables in server to route all traffic and all protocols from external-server-ip through openvpn to openvpn-client skipping 1194 port cause it's used for openvpn

in flag
This sounds like a multihomed configuration, iptables is not realy relevant here, you probably need to look at `ip rule` and `ip route` instead.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.