tcp and udp on same machine at same time ???
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
-
- OpenVpn Newbie
- Posts: 6
- Joined: Tue Apr 16, 2013 2:06 pm
tcp and udp on same machine at same time ???
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?
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?
- Traffic
- OpenVPN Protagonist
- Posts: 4066
- Joined: Sat Aug 09, 2014 11:24 am
Re: tcp and udp on same machine at same time ???
See --proto in The Manual v23xheadshoter wrote:tcp and udp protocols
You can run more than one instance of OpenVPN on one machine ...
-
- OpenVpn Newbie
- Posts: 6
- Joined: Tue Apr 16, 2013 2:06 pm
Re: tcp and udp on same machine at same time ???
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.Traffic wrote:See --proto in The Manual v23xheadshoter wrote:tcp and udp protocols
You can run more than one instance of OpenVPN on one machine ...
can you make me more clear about how this could be done?
Thanks,
- Traffic
- OpenVPN Protagonist
- Posts: 4066
- Joined: Sat Aug 09, 2014 11:24 am
Re: tcp and udp on same machine at same time ???
Create two config files (upd / tcp) and start them both ...
Perhaps you should read some documentation:
Perhaps you should read some documentation:
-
- OpenVpn Newbie
- Posts: 6
- Joined: Tue Apr 16, 2013 2:06 pm
Re: tcp and udp on same machine at same time ???
thanks for your help, but now i have two .conf files in /etc/openvpn/Traffic wrote:Create two config files (upd / tcp) and start them both ...
Perhaps you should read some documentation:
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??
- Traffic
- OpenVPN Protagonist
- Posts: 4066
- Joined: Sat Aug 09, 2014 11:24 am
Re: tcp and udp on same machine at same time ???
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.
.: 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.
-
- OpenVpn Newbie
- Posts: 6
- Joined: Tue Apr 16, 2013 2:06 pm
Re: tcp and udp on same machine at same time ???
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.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.
do you have any idea so i can undone this ?

Thanks,
- Traffic
- OpenVPN Protagonist
- Posts: 4066
- Joined: Sat Aug 09, 2014 11:24 am
Re: tcp and udp on same machine at same time ???
* Can he confirm this with a single ping ? * Red October 1990headshoter wrote:any other suggestions ?
-
- OpenVpn Newbie
- Posts: 6
- Joined: Tue Apr 16, 2013 2:06 pm
- Traffic
- OpenVPN Protagonist
- Posts: 4066
- Joined: Sat Aug 09, 2014 11:24 am
Re: tcp and udp on same machine at same time ???
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.
* Hint ..Traffic wrote:ensure you have opened the necessary server ports on your Server Firewall
- setup one server and make sure it works
then do the same again ..

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