OpenWrt Forum Archive

Topic: How to snat ip block? Help!!

The content of this topic has been archived on 6 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello folks, I'm a novice, when it comes to openwrt. I want to source nat a range of IPs from lan to wan.
I found this:http://wiki.openwrt.org/doc/uci/firewall#source.nat.snat doc, it describes how to snat 1:1 IPs, but I want to snat (for example ip block) 192.168.1.0/24 to 172.16.0.0/25 or (ip range) 192.168.1.1 - 192.168.1.200 to 172.16.0.1 - 172.16.0.100. I think it should be possible with owrt, but don't know how accomplish this.

Thank you!

,Rahul..

You can snat subnets (ip/prefix or ip/mask) but not ranges (ip1-ip2)

jow wrote:

You can snat subnets (ip/prefix or ip/mask) but not ranges (ip1-ip2)

Thanks for your prompt response. One more requirement I've is to log all private-public IP pairs into database or any text file will do. I wish, it is possible with owrt.

Thank you,

Rahul

Please Help!

I need it urgent.

Thank you,

Rahul..

The discussion might have continued from here.