Exchange traffic between tun0 and tun1 using iptables

cn flag

I have two vpn's that I've created each of which accomplishes their own networking goals. tun0 forwards all traffic to a socks5 proxy and tun1 accepts vpn connections. These interfaces are created inside of a docker container. tun0 seems to be fully operational without any extra configurations. However I am experiencing some issues with tun1...

  1. Although I am able to connect to the vpn server (tun1) I cannot get internet.
  2. My goal is to route the vpn client connections from tun1 to tun0

Can anyone help me figure out what is wrong?

I am launching the docker container with the following command:

docker run --cap-add=NET_ADMIN --privileged -e PROXY=proxy.server:port -p 1194:1194 tun2socks

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.