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
969 views 2 comments
by anonymous

Hello,

I set the wrong port forwarding via the web interface. Now I can no longer access the web interface from a distance (VPN).

But I have access via SSH / Putty in the VPN tunnel.

root@Teltonika-RUT900:~# cat /proc/cpuinfo
system type             : Atheros AR9344 rev 3
machine                 : TELTONIKA TLT-RUT900

 This is incorrect

Chain zone_vpn_prerouting (1 references)
target     prot opt source               destination
prerouting_vpn_rule  all  --  anywhere             anywhere             /* user chain for prerouting */
DNAT       tcp  --  anywhere             anywhere             tcp dpt:www /* Enable_HTTP_VPN_PASSTHROUGH */ to:192.168.10.101:80

I want only change the internal IP adress vom 192.168.10.101:80 to 192.168.10.1:80

Can somebody help me to changes it via iptables?

1 Answer

0 votes
by anonymous

Hi,

You can use UCI commands to find the rule and change it.

Use uci show | grep 192.168.10.101 to find the rule

And then use uci set command to change that rule to what you wanted initially.

After that use uci commit and luci-reload to save the changes you've made.

EB.

by anonymous

root@Teltonika-RUT900:~# uci show | grep 192.168.10.101

firewall.@redirect[0].dest_ip=192.168.10.101

firewall.@redirect[1].dest_ip=192.168.10.101

firewall.@redirect[2].dest_ip=192.168.10.101

firewall.@redirect[3].dest_ip=192.168.10.101

firewall.@redirect[4].dest_ip=192.168.10.101

Get more than one result because there some other port forwarding. the other port forwarding are correct 

Maybe set an iptable

from vpn on port xy to lan 192.168.1.1 on port 80 ?

by anonymous

In this case, just write grep firewall and should see the full list of firewall configurations.

EB.