Route only irc traffic through VPN

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Re: Route only irc traffic through VPN

Postby necro » Mon May 07, 2012 6:35 am

Znc is a irc bouncer. Openvpn is the Von client. I want to route znc traffic from my Linux box to a VPN service. Transmission client must connect directly to Internet.
necro
 
Posts: 9
Joined: Sat May 05, 2012 6:59 am

Re: Route only irc traffic through VPN

Postby tomcheng76 » Mon May 07, 2012 6:45 am

$this->bbcode_second_pass_quote('necro', 'Z')nc is a irc bouncer. Openvpn is the Von client. I want to route znc traffic from my Linux box to a VPN service. Transmission client must connect directly to Internet.


From the KissVPN FAQ
I.1 What do I have to do if I want to use my regular ISP and internet connection ?

If you want to use the VPN service you have to connect using the VPN-connection. If you want to use your regular ISP and internet connection you must disconnect the VPN-connection.

which means advanced forwarding is not allowed, you better host your openvpn server yourself or find another one.
The most simple way to do this is to put a linuxbox @ home, apply a ddns, install ssh or openvpn server, then do ssh tunneling or iptables + openvpn. local forward 6667 in your office to your home linux 6667 port

Edited: After the routing is setup, when your local machine connect *:6667, it will goes through the VPN, for other connection (like your transmission), it will use your original internet services

I always use screen + irssi for my IRC, so it will not be disconencted, then i do SSH, not port forwarding :)
tomcheng76
 
Posts: 130
Joined: Mon Dec 13, 2010 11:24 am

Re: Route only irc traffic through VPN

Postby necro » Mon May 07, 2012 7:25 am

I think I did not make myself clear.
I have ddclient, znc bouncer running and I can access znc/servers from Internet.
But , I want my znc to go to VPN/ssh tunnel service first and from there to connect to public irc server so that Whois on irc looks like the VPN ip instead of my home ip. And I am using znc as I need to be connected on about 4 servers.

I hope this clears out my concern about routing only znc traffic to VPN service first and then znc connects to irc servers.
necro
 
Posts: 9
Joined: Sat May 05, 2012 6:59 am

Re: Route only irc traffic through VPN

Postby necro » Sat Jan 26, 2013 7:16 pm

Just an update, I have been able to achieve the routing using pptp client and arch wiki guide.

The only problem is starting pptp client on boot. Even with sleep command, can't connect it. But if I do it manually , it connects well. I am using the cron job to start the command. Znc starts after 10 mins of boot but "pon tunnel" command doesn't connects to server. Although it is executed, but it doesn't connects.

Any thoughts ?

Alternatively, i tried openvpn, but still facing the port based routing problem!! Also, anyone aware abt where to add the iptable command for port based routing ? Possibly it could be a script which gets invoked when openvpn starts ?
necro
 
Posts: 9
Joined: Sat May 05, 2012 6:59 am

Re: Route only irc traffic through VPN

Postby majkelos » Tue Jan 29, 2013 1:50 am

Hi mate,

Try this one: viewtopic.php?f=18&t=4875
If you wanbt to start openvpn at boot and you have /etc/openvpn/config.conf file already set up you can do:

$this->bbcode_second_pass_code('', '
systemctl enable openvpn@config.service
')

...to start openvpn at boot.
Have a look
majkelos
 
Posts: 12
Joined: Thu Jan 10, 2013 3:36 am

Re: Route only irc traffic through VPN

Postby necro » Tue Jan 29, 2013 3:37 am

Thanks, I was able to route it using pptp and using the iptables in above post
necro
 
Posts: 9
Joined: Sat May 05, 2012 6:59 am

Previous

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 13 guests