Bind cascade connection to a specific IP
-
- Posts: 11
- Joined: Sun Dec 11, 2022 6:46 pm
Bind cascade connection to a specific IP
my interface has three IP addresses. Is there a way to select specific IP addresses for cascading?
instead of using the default one i want to have a cascade connection with the second IP on the interface
instead of using the default one i want to have a cascade connection with the second IP on the interface
-
- Site Admin
- Posts: 2227
- Joined: Sat Mar 09, 2013 5:37 am
Re: Bind cascade connection to a specific IP
VPN サーバーに割り当てられている IP アドレスを1つ開放して、VPN クライアントの仮想LANカードに割り当てて下さい。
-
- Posts: 11
- Joined: Sun Dec 11, 2022 6:46 pm
-
- Site Admin
- Posts: 2227
- Joined: Sat Mar 09, 2013 5:37 am
Re: Bind cascade connection to a specific IP
それなら、VPN Server にルーティングを設定するか、ポートフォワードアプリケーションを使用する方法もあります。
-
- Posts: 148
- Joined: Wed Mar 10, 2021 1:56 am
Re: Bind cascade connection to a specific IP
1.You can specify IP address on which VPN server listens for Developer Edition.
(1)Binding cascade connection to a specific IP address is available for VPN Server Developer Edition V5.02.
"ListenIP" is found in "vpn_server.config"
https://github.com/SoftEtherVPN/SoftEtherVPN/issues/193
(2)Binding cascade connection to a specific IP address is not available for VPN Server Stable Edition V4.38.
"ListenIP" is not found in "vpn_server.config"
(3)Edit "ListenIP" in "vpn_server.config" indicated below.
2.Changing source IP address on which VPN client establishes connection.
If you would like to change the source IP address for outgoing connection of VPN Client,
Change "SkipAsSource" flag of IP addresses. This might work for Win10.
https://superuser.com/questions/1439333 ... erver-have
https://midene-sr.hatenablog.com/entry/ ... /29/162411
(1)Binding cascade connection to a specific IP address is available for VPN Server Developer Edition V5.02.
"ListenIP" is found in "vpn_server.config"
https://github.com/SoftEtherVPN/SoftEtherVPN/issues/193
(2)Binding cascade connection to a specific IP address is not available for VPN Server Stable Edition V4.38.
"ListenIP" is not found in "vpn_server.config"
(3)Edit "ListenIP" in "vpn_server.config" indicated below.
"vpn_server.config" (Configuration File for VPN Server Developer Edition V5.02 )Code: Select all
declare root { declare ServerConfiguration { string ListenIP 192.168.0.222 <---This is a listening IP address
2.Changing source IP address on which VPN client establishes connection.
If you would like to change the source IP address for outgoing connection of VPN Client,
Change "SkipAsSource" flag of IP addresses. This might work for Win10.
https://superuser.com/questions/1439333 ... erver-have
https://midene-sr.hatenablog.com/entry/ ... /29/162411
-
- Posts: 11
- Joined: Sun Dec 11, 2022 6:46 pm
Re: Bind cascade connection to a specific IP
Actually, I want to have a cascade connection with a specific source IP address for outgoing connection for each hub.
i have three IP address on the interface 45.1.1.1,45.1.1.2 and 45.1.1.3 and three hub (hub1,hub2 and hub3) on the SoftEther
HUB 1 --> CASCADING via 45.1.1.1 -->
HUB 2 --> CASCADING via 45.1.1.2 -->
HUB 3 --> CASCADING via 45.1.1.3 -->
I can't achieve this by "ListenIP" in vpn_server config. I have linux server ubuntu 22.04
i have three IP address on the interface 45.1.1.1,45.1.1.2 and 45.1.1.3 and three hub (hub1,hub2 and hub3) on the SoftEther
HUB 1 --> CASCADING via 45.1.1.1 -->
HUB 2 --> CASCADING via 45.1.1.2 -->
HUB 3 --> CASCADING via 45.1.1.3 -->
I can't achieve this by "ListenIP" in vpn_server config. I have linux server ubuntu 22.04
-
- Posts: 148
- Joined: Wed Mar 10, 2021 1:56 am
Re: Bind cascade connection to a specific IP
Unfortunately "ListenIP" in vpn_server config is for incoming connection when accepting a connection.
The function of binding outgoing connection to a specific source IP address is not supported by Softether VPN.
So, I modified the Softether Developer Edition to bind outgoing connection to a specific source IP address for Windows 10.
I am not sure that whether or not there is another way except for changing source code.
Mr.cedar may have good solution about this.
The function of binding outgoing connection to a specific source IP address is not supported by Softether VPN.
So, I modified the Softether Developer Edition to bind outgoing connection to a specific source IP address for Windows 10.
I am not sure that whether or not there is another way except for changing source code.
Mr.cedar may have good solution about this.
Last edited by hiura on Tue Jun 06, 2023 12:49 am, edited 1 time in total.
-
- Site Admin
- Posts: 2227
- Joined: Sat Mar 09, 2013 5:37 am
Re: Bind cascade connection to a specific IP
What you are trying to do is a process called NAPT.
SecureNAT provides a simple NAPT function, but it cannot meet your requirements because there is no way to fix the IP address on the WAN side.
In order to achieve this, I think it would be better to use a third-party NAPT processing application on the virtual LAN card connected to each Virtual Hub.
SecureNAT provides a simple NAPT function, but it cannot meet your requirements because there is no way to fix the IP address on the WAN side.
In order to achieve this, I think it would be better to use a third-party NAPT processing application on the virtual LAN card connected to each Virtual Hub.
-
- Posts: 11
- Joined: Sun Dec 11, 2022 6:46 pm
Re: Bind cascade connection to a specific IP
Mr.cedar could you please add this option to SoftEther?
-
- Site Admin
- Posts: 2227
- Joined: Sat Mar 09, 2013 5:37 am
Re: Bind cascade connection to a specific IP
Although it is not impossible to implement SecureNAT with a fixed WAN-side IP address, it is recommended to use an discrete NAPT application because it provides more flexibility in setting.
-
- Posts: 148
- Joined: Wed Mar 10, 2021 1:56 am
Re: Bind cascade connection to a specific IP
NAPTを使用すれば送信元IPアドレスを固定化できるという内容ですが、
例えば、WAN側に複数のIPアドレスA,B,Cが設定されている場合、
LAN内の端末Xが発したWANに向けた接続要求の送信元IPアドレスをB(AとかC)に指定できると言うことでしょうか?
例えば、WAN側に複数のIPアドレスA,B,Cが設定されている場合、
LAN内の端末Xが発したWANに向けた接続要求の送信元IPアドレスをB(AとかC)に指定できると言うことでしょうか?
Last edited by hiura on Wed Jun 07, 2023 9:53 am, edited 1 time in total.
-
- Site Admin
- Posts: 2227
- Joined: Sat Mar 09, 2013 5:37 am
Re: Bind cascade connection to a specific IP
OSのIPスタックを使用せず、独自のIPスタックを持ったアプリケーションであれば、そのような動作が可能です。
(実際、SecureNAT は OS の設定とは無関係に自身の WAN 側 IP アドレスを取得します。)
(実際、SecureNAT は OS の設定とは無関係に自身の WAN 側 IP アドレスを取得します。)
-
- Posts: 148
- Joined: Wed Mar 10, 2021 1:56 am
Re: Bind cascade connection to a specific IP
今回の場合、NICは一つ(MAC アドレスも当然一つ)しかないと言う制限付きと理解しています。
アプリで仮想NIC(LAN側?)を作り、それと実際のNIC(WAN側?)を接続するイメージでしょうか?
そうであれば、例えば、どんなアプリがあるのでしょうか?。WAN側が複数IP対応しているもので。
アプリで仮想NIC(LAN側?)を作り、それと実際のNIC(WAN側?)を接続するイメージでしょうか?
そうであれば、例えば、どんなアプリがあるのでしょうか?。WAN側が複数IP対応しているもので。
-
- Site Admin
- Posts: 2227
- Joined: Sat Mar 09, 2013 5:37 am
Re: Bind cascade connection to a specific IP
例えばSecureNATは(いくつかのモードがありますが)そのように動作します。
https://ja.softether.org/4-docs/3-kb/VPNFAQ036
なお、NIC が 1 つで、MAC アドレスが 1 つの場合でも、普通の OS でも、複数の IP アドレスを持つことは可能です。
https://ja.softether.org/4-docs/3-kb/VPNFAQ036
なお、NIC が 1 つで、MAC アドレスが 1 つの場合でも、普通の OS でも、複数の IP アドレスを持つことは可能です。
-
- Posts: 148
- Joined: Wed Mar 10, 2021 1:56 am
Re: Bind cascade connection to a specific IP
>例えばSecureNATは(いくつかのモードがありますが)そのように動作します。
VPN SERVERのSecureNATは、アプリ例えば、EDGEとか、リモートデスクトップとか、のパケットがVPN通過時にそのアプリの送信元IPアドレス、送信元ポートを変換する機能です。
今回問題になっているのは、VPN SERVER自身が確立するコネクション(カスケードコネクションのパケット)の送信元IPアドレスです。
自分の理解ですが。
したがって、SecureNATは使えないとおもいますが。。。
>なお、NIC が 1 つで、MAC アドレスが 1 つの場合でも、普通の OS でも、複数の IP アドレスを持つことは可能です。
それは理解しています。
VPN SERVERのSecureNATは、アプリ例えば、EDGEとか、リモートデスクトップとか、のパケットがVPN通過時にそのアプリの送信元IPアドレス、送信元ポートを変換する機能です。
今回問題になっているのは、VPN SERVER自身が確立するコネクション(カスケードコネクションのパケット)の送信元IPアドレスです。
自分の理解ですが。
したがって、SecureNATは使えないとおもいますが。。。
>なお、NIC が 1 つで、MAC アドレスが 1 つの場合でも、普通の OS でも、複数の IP アドレスを持つことは可能です。
それは理解しています。
-
- Site Admin
- Posts: 2227
- Joined: Sat Mar 09, 2013 5:37 am
Re: Bind cascade connection to a specific IP
> Is there a way to select specific IP addresses for cascading?
質問では、このように書かれているので、仮想 HUB 内部から発信される通信についての話だと解釈しました。
質問では、このように書かれているので、仮想 HUB 内部から発信される通信についての話だと解釈しました。
-
- Posts: 148
- Joined: Wed Mar 10, 2021 1:56 am
Re: Bind cascade connection to a specific IP
I would like to make sure.
Which case is your requirement ?
case 1:
How to force Applications to use a specific ip address as source ip address ?
case 2:
How to force Cascade Connection to use a specific ip address as source ip address ?
Which case is your requirement ?
case 1:
How to force Applications to use a specific ip address as source ip address ?
case 2:
How to force Cascade Connection to use a specific ip address as source ip address ?
-
- Posts: 11
- Joined: Sun Dec 11, 2022 6:46 pm
Re: Bind cascade connection to a specific IP
As i mentioned i have three IP addresses on an interface, I want to have cascade connection with a selected IP address
vps1 with three IP addresses (xxx.xxx.xxx.10,xxx.xxx.xxx.11,xxx.xxx.xxx.12) on interface ens33
Three hubs on VPS1 (hub1,hub2,hub3)
Three hubs on VPS2 (hub4,hub5,hub6)
i want to have cascade connection on each hubs with specific IP on interface so:
vps1 (hub1) --> cascading with outgoing IP address xxx.xxx.xxx.10 --> vps2 (hub4)
So hub4 has a session with IP address xxx.xxx.xxx.10
vps1 with three IP addresses (xxx.xxx.xxx.10,xxx.xxx.xxx.11,xxx.xxx.xxx.12) on interface ens33
Three hubs on VPS1 (hub1,hub2,hub3)
Three hubs on VPS2 (hub4,hub5,hub6)
i want to have cascade connection on each hubs with specific IP on interface so:
vps1 (hub1) --> cascading with outgoing IP address xxx.xxx.xxx.10 --> vps2 (hub4)
So hub4 has a session with IP address xxx.xxx.xxx.10
-
- Posts: 148
- Joined: Wed Mar 10, 2021 1:56 am
Re: Bind cascade connection to a specific IP
To Mr.cedar
カスケードコネクションを確立するときの話のようですが。。。
カスケードコネクションを確立するときの話のようですが。。。
-
- Site Admin
- Posts: 2227
- Joined: Sat Mar 09, 2013 5:37 am
Re: Bind cascade connection to a specific IP
なるほど。それは、OS のルーティング処理の問題になると思います。
-
- Posts: 148
- Joined: Wed Mar 10, 2021 1:56 am
Re: Bind cascade connection to a specific IP
I have already submitted the pull request below.
https://github.com/SoftEtherVPN/SoftEtherVPN/pull/1867
https://github.com/hiura2023/SoftEtherVPN/tree/master
I think that this pull request meets your requirement.
https://github.com/SoftEtherVPN/SoftEtherVPN/pull/1867
https://github.com/hiura2023/SoftEtherVPN/tree/master
I think that this pull request meets your requirement.