Rouzah wrote: ↑Thu Feb 02, 2023 2:28 pm
Thanks shakibamoshiri,
In my LAN i see the internal IP of my PC and the internal IP of the SecNat.
1. When i forward ports in my router settings, should i forward ports to my PC-IP or to the SecureNat-IP?
2. The SecNat IP in my router settings is 192.168.178.XX but the SecNat IP in the SecNat configs window is 192.168.30.XX. Is that a problem, or should they be the same IP?
SecNat IP in SE:
SecNat.png
SecNat IP in router:
rtr.png
3. The person trying to connect to server gets this error:
berror.png
- ports are forwarded successfully. I tested them.
Thanks
edit
The problem seems to be with iphones. I went through all possibilities, as can be seen above but it is a problem pertaining to iphones.
if you run a SE server on your local machine (LAN)
-> you do not need to touch your home router
-> you do not need to open ports, etc
What you need
-> your LAN IP address (assuming it is 192.168.1.100 or could be 192.168.178.100)
-> run SE server on LAN
--> enable L2TPs functionality
--> add a user a a hub and that hub is the default one (can be seen on L2TP setting which hub is the default one)
---> e.g user you added is: "vpn" and password is "vpn"
--> enable SecureNAT
-> connect your iPhone to your Home LAN WiFi (do not use cellar network)
-> go to iPhone > Setting > General > Add VPN
--> type: L2TP
--> server address is your local LAN IP ==> 192.168.1.100 or 192.168.178.XXX
--> username and password: vpn && vpn
At this point your should be able to connect from your iPhone (Connected to LAN) to your LAN (running SE server)
YES if you think this is pointless.
This is just for testing SE and L2TP functionality if you can connect successfully or not
with my LAN IP 192.168.1.254
Next Test
Connecting to SE server running on your LAN via your public IP address
I think you are looking for this one. So you want to connect from everywhere to your local machine running SE server via L2TP
You should
-> sign in to your home router and find your public IP address
-> enable / add port forwarding for
--> 443
--> 992
--> 1194
--> 500 (l2tp)
--> 4500 (l2tp)
--> 5555
-> make sure ports are open
-> in your iPhone (do not use cellar network -- still WifI -- this is for testing of opening ports)
--> update your L2TP server address and add your "public IP address"
-> try it if you can connect or not (it should connect
with my public IP address: X.X.X.X
Final Test
-> in your iPhone (use cellar network)
--> update your L2TP server address and add your "public IP address"
-> try it if you can connect or not (I sometime could, sometimes did not work)
with cellar network this time did not work for me, sometime works.
Is this end of the story and there is no way to connect ?
No, we can run a local bridge , connecting it to a public IP and then from everywhere conning to that public IP == connecting to your home network