FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
808 views 0 comments
by
Hello,

I have this problem where I have mobile phone that needs to connect to server from inside LAN (Using WLAN) and when outside the WLAN range through mobile network or another WLAN.

Strangely enough it works now through mobile network or another WLAN but not when phone is connected to same LAN with the server through WLAN.

How to configure? Is the problem between WLAN and LAN?

My device is RUT240 and I have static IP for the router and server. Also needed port is opened.

3 Answers

0 votes
by anonymous
Hello,

there is a problem with mobile nat loopback.

This issue will be fixed soon.
0 votes
by anonymous

Hello,

So you are able to access the server from outside your network, but not from inside? Maybe you are trying to connect to the server using public IP address from inside your local network? For that you would need to enable NAT loopback in your port forwarding settings and use ppp connection mode if you are using mobile connection to the internet.

0 votes
by anonymous
To manually fix this you can edit /etc/config/firewall over SSH/CLI.

Add ppp_4 to wan zone network option.

Example:

config zone
    option name 'wan'
    option input 'DROP'
    option output 'ACCEPT'
    option forward 'DROP'
    option masq '1'
    option mtu_fix '1'
    option network 'wan ppp ppp_4 wan2'