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
348 views 1 comments
by anonymous
Goodmorning,

I need to create a NAT 1:1 .

I need to map an internal address (LAN) to an external address (WAN ). For every entry inside the NAT 1:1 table, the RUT240 gateway will create a new virtual IP address on its WAN e. The LAN device associated with that entry then becomes accessible at this new virtual IP address.

It is possible to create this funtion?

Can you help me?

Thanks beste regards

1 Answer

0 votes
by anonymous

Hello,

Thank you for reaching out!

We have a great Wiki article on how to set this up on RUTX devices, however, everything should also apply to RUT240.

The basic summary is:

  • Static IP needs to be configured on the WAN interface;
  • In Firewall -> Custom Rules iptables rules can be added:
    • iptables -t nat -I PREROUTING -d ROUTER_WAN_IP -j DNAT --to-destination SERVER_LAN_IP
    • iptables -t nat -I POSTROUTING -s SERVER_LAN_IP -j SNAT --to-source ROUTER_WAN_IP
        

Let me know if you encounter any issues!

Best regards,

DaumantasG

Best answer
by anonymous
Thank you very much for support.

All it is fine and work very well.

Thank you.

Best regards