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                              
dh dh.pem
server 10.8.0.0 255.255.255.0 
...

Server 2:

port 1195
proto udp
dev tun
topology "subnet"
push "topology subnet"
ca /etc/openvpn/server2/ca.crt
cert /etc/openvpn/server2/server2.crt
key /etc/openvpn/server2/server2.key                           
dh /etc/openvpn/server2/dh.pem
server 10.8.0.0 255.255.255.0


Isn't that strange?



On Sunday, July 23, 2023 at 06:29:20 PM GMT+3:30, Gert Doering 
<g...@greenie.muc.de> wrote: 





Hi,

On Sun, Jul 23, 2023 at 01:32:19PM +0000, 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 IP addresses", so, a server does not 
> need to have multiple NAT NICs ? For example, A VPN provider can have a VPN 
> server with a NIC that use three or four public IP addresses.

Sure.

There's some practical limits - like, some OSes start getting funny when
you exceed something like 500 IP addresses on one interface - but besides
that it's just a matter of setting up routing/interface config properly.


gert

-- 
"If was one thing all people took for granted, was conviction that if you 
feed honest figures into a computer, honest figures come out. Never doubted 
it myself till I met a computer with a sense of humor."
                            Robert A. Heinlein, The Moon is a Harsh Mistress

Gert Doering - Munich, Germany                            g...@greenie.muc.de


_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to