one-to-one NAT

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
lomenop
DD-WRT Novice


Joined: 18 Aug 2018
Posts: 2

PostPosted: Sat Aug 18, 2018 4:17    Post subject: one-to-one NAT Reply with quote
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
Sponsor
lomenop
DD-WRT Novice


Joined: 18 Aug 2018
Posts: 2

PostPosted: Sun Aug 19, 2018 22:19    Post subject: Reply with quote
thanks! that was it.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum