Page 1 of 1
tcp and udp on same machine at same time ???
Posted: Thu Mar 12, 2015 4:58 pm
by headshoter
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?
Re: tcp and udp on same machine at same time ???
Posted: Thu Mar 12, 2015 8:51 pm
by Traffic
headshoter wrote:tcp and udp protocols
See
--proto in
The Manual v23x
You can run more than one instance of OpenVPN on one machine ...
Re: tcp and udp on same machine at same time ???
Posted: Fri Mar 13, 2015 6:20 pm
by headshoter
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,
Re: tcp and udp on same machine at same time ???
Posted: Fri Mar 13, 2015 6:38 pm
by Traffic
Create two config files (upd / tcp) and start them both ...
Perhaps you should read some documentation:
Re: tcp and udp on same machine at same time ???
Posted: Fri Mar 13, 2015 6:54 pm
by headshoter
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??
Re: tcp and udp on same machine at same time ???
Posted: Fri Mar 13, 2015 7:06 pm
by Traffic
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.
Re: tcp and udp on same machine at same time ???
Posted: Fri Mar 13, 2015 7:20 pm
by headshoter
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,
Re: tcp and udp on same machine at same time ???
Posted: Fri Mar 13, 2015 8:04 pm
by Traffic
headshoter wrote:any other suggestions ?
*
Can he confirm this with a single ping ?
*
Red October 1990
Re: tcp and udp on same machine at same time ???
Posted: Fri Mar 13, 2015 8:14 pm
by headshoter
Re: tcp and udp on same machine at same time ???
Posted: Fri Mar 13, 2015 8:54 pm
by Traffic
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 ..

--
teaching you to help yourself.
HOWTO: For OpenVPN Community Edition