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
629 views 1 comments
by anonymous
Hi,

This is an urgent request. I need to know, if RUT300 can do two wat NAT?

I have tried, but without luck.

In CISCO the commands would be:

interface <lan-port-to-inside-device>

 ip address 192.168.13.1 255.255.255.0

 ip nat inside

interface <wan-port-to-outside_network>

 ip address 192.168.12.201 255.255.255.0

 ip nat outside

ip nat inside source static 192.168.13.32 192.168.12.32

ip nat outside source static 192.168.12.13 192.168.13.213

ip nat outside source static 192.168.12.14 192.168.13.214

Can this be done in RUT300 ?

Best regards
Henrik

1 Answer

0 votes
by anonymous

Hello,

For a more detail NAT configuration, you can execute iptables commands going to option Network > Firewall > Custom Rules like it’s shown on the following wikipage:

RUT300 Firewall - Teltonika Networks Wiki (teltonika-networks.com)

Please, also check the following scenario’s last part which includes an example of the configuration of Custom Rules for NAT using iptables commands.

RUTX 1-to-1 NAT - Teltonika Networks Wiki (teltonika-networks.com)

iptables -t nat -I PREROUTING -d [ROUTER'S_WAN_IP] -j DNAT --to-destination [SERVER'S_LAN_IP]

iptables -t nat -I POSTROUTING -s [SERVER'S_LAN_IP] -j SNAT --to-source [ROUTER'S_WAN_IP]

For more information about this linux command you can check online documentation like the following:

Iptables for Routing (stackunderflow.dev)

Kind regards. 

Best answer
by anonymous
Thanks a lot for sharing this feature. It can solve the actual challenge.

Best regards

Henrik