Re: [Openvpn-users] Multiple OpenVPN server on one NIC

2023-07-23 Thread Gert Doering
Hi, On Mon, Jul 24, 2023 at 05:45:47AM +, Jason Long wrote: > Hi Gert, > Thanks again for your reply. > But, I tested my OpenvPN server. As I understand, the Port number is > important for the OpenVPN server, because with the same IP address and > Different Port, The OpenVPN worked. You can

Re: [Openvpn-users] OpenVPN multiple connections and multiple NICs

2023-07-23 Thread Jason Long via Openvpn-users
Hi Leroy, Thank you so much for your reply. I have two questions and I'm thankful if you answer them: 1- Suppose that two different Internets are connected to your system through LAN, by default, the operating system uses only one of them unless you use  multipath routing. When you use iptables

Re: [Openvpn-users] Multiple OpenVPN server on one NIC

2023-07-23 Thread Leroy Tennison via Openvpn-users
A company I consult with is running three OpenVPN servers on a single NIC.  Either the port or possibly the protocol has to be different.  And there are cautions about running OpenVPN on tcp so probably best to stick to different ports.  In the situation above one OpenVPN instance used udp and

Re: [Openvpn-users] OpenVPN multiple connections and multiple NICs

2023-07-23 Thread Leroy Tennison via Openvpn-users
I'm a little unclear about your question so hopefully this general reply will help.  OpenVPN's "push" statement can push routes to clients for server-side subnets, the "route" statement can inject routes to client subnets into the server environment and 'iroute' statements can cause OpenVPN cli

Re: [Openvpn-users] Multiple OpenVPN server on one NIC

2023-07-23 Thread Jason Long via Openvpn-users
Hi Gert, Thanks again for your reply. But, I tested my OpenvPN server. As I understand, the Port number is important for the OpenVPN server, because with the same IP address and Different Port, The OpenVPN worked. Server 1: port 1194 proto udp dev tun ca ca.crt cert server.crt key server.key   

Re: [Openvpn-users] Multiple OpenVPN server on one NIC

2023-07-23 Thread Bo Berglund
On Sun, 23 Jul 2023 09:43:54 + (UTC), Jason Long via Openvpn-users wrote: >Hello, >Is it possible to run multiple OpenVPN server on one NIC? Or each OpenVPN >server profile needs a separate NIC? > On my VPN servers (I run such a server on each network where I have RPi devices running so I c

Re: [Openvpn-users] Multiple OpenVPN server on one NIC

2023-07-23 Thread Gert Doering
Hi, On Sun, Jul 23, 2023 at 01:32:19PM +, Jason Long wrote: > 1- If the port number is different, then "server" IP can be the same? For > example, the first server use: No. That is inside IPs (and something else again), they must be distinct. [..] > 2- You said, "A "NIC" can have multiple

Re: [Openvpn-users] Multiple OpenVPN server on one NIC

2023-07-23 Thread Jason Long via Openvpn-users
Hi Jochen, Thank you so much for your reply. I have two more questions: 1- So, both of IP address and Port number must be different? 2- If the IP address is different, then the port can be the same?  Please answer my questions by number. On Sunday, July 23, 2023 at 05:34:30 PM GMT+3:30, J

Re: [Openvpn-users] Multiple OpenVPN server on one NIC

2023-07-23 Thread Jochen Bern
On 23.07.23 15:32, Jason Long via Openvpn-users wrote: 1- If the port number is different, then "server" IP can be the same? > For example, the first server use: port 1194 [...] server 10.8.0.0 255.255.255.0 The second server use: port 1195 [...] server 10.8.0.0 255.255.255.0 Or both of

Re: [Openvpn-users] Multiple OpenVPN server on one NIC

2023-07-23 Thread Jason Long via Openvpn-users
Hi Gert, Thanks again. I have two questions: 1- If the port number is different, then "server" IP can be the same? For example, the first server use: port 1194 proto udp dev tun ca ca.crt cert server.crt key server.key                               dh dh.pem server 10.8.0.0 255.255.255.0 The

Re: [Openvpn-users] Multiple OpenVPN server on one NIC

2023-07-23 Thread Gert Doering
Hi, On Sun, Jul 23, 2023 at 12:30:31PM +, Jason Long wrote: > Thank you so much for your answer. > So, if I want to have multiple OpenVPN server profile on one NIC, then they > must have different port number. Am I right? On one *IP* address, yes. A "NIC" can have multiple IP addresses, so

Re: [Openvpn-users] Multiple OpenVPN server on one NIC

2023-07-23 Thread Jason Long via Openvpn-users
Hi Gert, Thank you so much for your answer. So, if I want to have multiple OpenVPN server profile on one NIC, then they must have different port number. Am I right? On Sunday, July 23, 2023 at 03:51:37 PM GMT+3:30, Gert Doering wrote: Hi, On Sun, Jul 23, 2023 at 09:43:54AM +, Ja

Re: [Openvpn-users] Multiple OpenVPN server on one NIC

2023-07-23 Thread Gert Doering
Hi, On Sun, Jul 23, 2023 at 09:43:54AM +, Jason Long via Openvpn-users wrote: > Is it possible to run multiple OpenVPN server on one NIC? Or each OpenVPN > server profile needs a separate NIC? This is not really an "OpenVPN" question, but more a general TCP-IP question. Server processes nee

Re: [Openvpn-users] OpenVPN multiple connections and multiple NICs

2023-07-23 Thread Jason Long via Openvpn-users
Hello, Thank you so much for your reply. This is normal in Linux. When you have two NAT NICs, just one of them is used to connect to the Internet. You must write routing tables. Does OpenVPN do this routing itself?  On Sunday, July 23, 2023 at 08:34:01 AM GMT+3:30, Leroy Tennison via Openv

[Openvpn-users] Multiple OpenVPN server on one NIC

2023-07-23 Thread Jason Long via Openvpn-users
Hello, Is it possible to run multiple OpenVPN server on one NIC? Or each OpenVPN server profile needs a separate NIC? Thank you. ___ Openvpn-users mailing list Openvpn-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-u

Re: [Openvpn-users] How to run multiple configuration files at the same time?

2023-07-23 Thread Jason Long via Openvpn-users
Hello, Thank you so much for your reply. My first server config is: port 1194 proto udp dev tun ca ca.crt cert server.crt key server.key                              dh dh.pem server 10.8.0.0 255.255.255.0                push "redirect-gateway def1 bypass-dhcp" #push "dhcp-option DNS 208.67.222.2