[Q] Way to run VPN server and client on one host.

Hello guys,
I'm finding a way to run VPN server and client on one host. Is there any method ?
(sorry but I'm not goot at English......)

I want to control packets on android, for streaming data caching. So I need to block outgoing HTTP request(case of cache hit).

In case of using two hosts, I works perfectly. And in one host, I have thought it will work like following method:
Mark per username who run processes using iptables, and make routing tables which can work through VPN or default gateway.

But I cannot connect to internet. So I checked 'ip route ls table cache' and found that cannot reach default gateway.
(screenshot link: docs.google.com/presentation/d/1Uu7Xm4iKOmE4s9zLUu7TBf_pMd85Gou-rIW_GRONqBQ/pub)

Is there an any way to solve this problem? or some books or docs...

Have a nice day!

Show Accepted Answer

Guest Quick Reply (No URL, BBcode or HTML)

Last post by mason.raynor
2 hours ago
Last post by lwelch
22 minutes ago
Last post by virginie64
2 hours ago
Last post by otho99
4 hours ago
Last post by eddie.thompson
5 hours ago
Last post by minnie06
2 hours ago
Last post by arturo02
2 hours ago
Last post by bchamplin
1 hour ago
Last post by simonis.kraig
1 hour ago
Last post by mariano48
2 hours ago
forwards
Started by geovanny95
Last post by nicklaus66
58 minutes ago
Last post by kkuvalis
1 hour ago
Last post by czieme
45 minutes ago