lomenop DD-WRT Novice
Joined: 18 Aug 2018 Posts: 2
|
Posted: Sat Aug 18, 2018 4:17 Post subject: one-to-one NAT |
|
Hi,
I tried following this guide ( https://wiki.dd-wrt.com/wiki/index.php/One-to-one_NAT ) but can't seem to get ping to respond. I'm plugged into the WAN on one laptop with its IP set to 10.0.0.220 subnet. I'm plugged into a LAN port with another laptop with its IP set to 192.168.100.5. I then proceed to ping 10.0.0.240 from the 10.0.0.220 laptop and I get no response. What am I doing wrong?
Right now, I only have one 1:1, but plan to add more once this works.
WAN Static IP Address
10.0.0.230
Subnet Mask
255.255.255.0
Gateway
10.0.0.1
My script to:
# Save Startup
WANIF=`get_wanface`
ifconfig $WANIF:1 10.0.0.240 netmask 255.255.255.0 broadcast 192.168.100.255
# Save Firewall
# WAN .240 -> LAN .5
iptables -t nat -I PREROUTING -d 10.0.0.240 -j DNAT --to 192.168.100.5
iptables -t nat -I POSTROUTING -s 192.168.100.5 -j SNAT --to 10.0.0.240
iptables -I FORWARD -d 192.168.100.5 -j ACCEPT |
|