Re: [arch-general] Forward all PPTP VPN packets to another proxy?

2013-03-26 Thread Bill Sun
On Sat, Mar 23, 2013 at 08:30:10PM +0800, Hexchain Tong wrote: > On Sat, Mar 23, 2013 at 2:39 PM, Bill Sun wrote: > > > > I'm thinking about running a http server that handles all the > > authentication for Server 2 (such as dante?), then forward all packets > > to that server (running in Server 1

Re: [arch-general] Forward all PPTP VPN packets to another proxy?

2013-03-23 Thread Hexchain Tong
On Sat, Mar 23, 2013 at 2:39 PM, Bill Sun wrote: > > I'm thinking about running a http server that handles all the > authentication for Server 2 (such as dante?), then forward all packets > to that server (running in Server 1). But I don't know how to write > corresponding iptables rules. So how t

[arch-general] Forward all PPTP VPN packets to another proxy?

2013-03-23 Thread Bill Sun
Hi, Currently I have a arch linux server running PPTP VPN (for iOS devices only), and I forward all PPTP VPN packets to local eth0: iptables -A POSTROUTING -s -o eth0 -j MASQUERADE Now I got a external proxy, and I want all the traffic currently through the PPTP VPN then through that extenal