tcp and udp on same machine at same time ???

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
headshoter
OpenVpn Newbie
Posts: 6
Joined: Tue Apr 16, 2013 2:06 pm

tcp and udp on same machine at same time ???

Post by headshoter » Thu Mar 12, 2015 4:58 pm

Hi,
I'm looking for a solution that helps me connecting to my server using both tcp and udp protocols.
Is this possible at all? Does anyone have any idea?

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: tcp and udp on same machine at same time ???

Post by Traffic » Thu Mar 12, 2015 8:51 pm

headshoter wrote:tcp and udp protocols
See --proto in The Manual v23x

You can run more than one instance of OpenVPN on one machine ...

headshoter
OpenVpn Newbie
Posts: 6
Joined: Tue Apr 16, 2013 2:06 pm

Re: tcp and udp on same machine at same time ???

Post by headshoter » Fri Mar 13, 2015 6:20 pm

Traffic wrote:
headshoter wrote:tcp and udp protocols
See --proto in The Manual v23x

You can run more than one instance of OpenVPN on one machine ...
i've visited the link you provided, but didn't get anything special. just the proto types was explained but not explained how to run multiple instances.
can you make me more clear about how this could be done?

Thanks,

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: tcp and udp on same machine at same time ???

Post by Traffic » Fri Mar 13, 2015 6:38 pm

Create two config files (upd / tcp) and start them both ...

Perhaps you should read some documentation:

headshoter
OpenVpn Newbie
Posts: 6
Joined: Tue Apr 16, 2013 2:06 pm

Re: tcp and udp on same machine at same time ???

Post by headshoter » Fri Mar 13, 2015 6:54 pm

Traffic wrote:Create two config files (upd / tcp) and start them both ...

Perhaps you should read some documentation:
thanks for your help, but now i have two .conf files in /etc/openvpn/
one (server.conf) configured to use udp:999 and the other (second.conf) configured to use udp:987
i run "service openvpn restart" command, but after that i can only connect to udp:999 and it seems the service is not listening to port 987.

is this configurable to set which .conf files should be started when openvpn service is restarting??

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: tcp and udp on same machine at same time ???

Post by Traffic » Fri Mar 13, 2015 7:06 pm

OpenVPN service on Linux "usually" starts ALL .conf files in /etc/openvpn

.: only have the .conf file you require in /etc/openvpn when starting the OpenVPN service.

Or .. start them all and configure your network to correctly accommodate them all.
In your case: ensure you have opened the necessary server ports on your Server Firewall.

headshoter
OpenVpn Newbie
Posts: 6
Joined: Tue Apr 16, 2013 2:06 pm

Re: tcp and udp on same machine at same time ???

Post by headshoter » Fri Mar 13, 2015 7:20 pm

Traffic wrote:OpenVPN service on Linux "usually" starts ALL .conf files in /etc/openvpn

.: only have the .conf file you require in /etc/openvpn when starting the OpenVPN service.

Or .. start them all and configure your network to correctly accommodate them all.
In your case: ensure you have opened the necessary server ports on your Server Firewall.
if fact i remember i've run a command like this : "openvpn --config file". i guess the problem is here because i manually set the configuration file.
do you have any idea so i can undone this ? :) or any other suggestions ?

Thanks,


headshoter
OpenVpn Newbie
Posts: 6
Joined: Tue Apr 16, 2013 2:06 pm

Re: tcp and udp on same machine at same time ???

Post by headshoter » Fri Mar 13, 2015 8:14 pm

Image

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: tcp and udp on same machine at same time ???

Post by Traffic » Fri Mar 13, 2015 8:54 pm

headshoter wrote:I'm looking for a solution that helps me connecting to my server using both tcp and udp protocols.
Is this possible at all?
Traffic wrote:You can run more than one instance of OpenVPN on one machine ...
headshoter wrote:thanks for your help, but now i have two .conf files in /etc/openvpn/
headshoter wrote:one (server.conf) configured to use udp:999 and the other (second.conf) configured to use udp:987
i run "service openvpn restart" command, but after that i can only connect to udp:999 and it seems the service is not listening to port 987.
Traffic wrote:ensure you have opened the necessary server ports on your Server Firewall
* Hint ..
  • setup one server and make sure it works
    then do the same again ..
:mrgreen:
--
teaching you to help yourself.
HOWTO: For OpenVPN Community Edition

Post Reply