FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14201 questions

16856 answers

27732 comments

54309 members

0 votes
175 views 1 comments
by
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

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
Thank you very much for support.

All it is fine and work very well.

Thank you.

Best regards