DD-WRT: keep source IP after port forwarding

2

1

I just started using DD-WRT on my WNDR3700, but now all my incoming connections to a server inside the network get the same source IP as the router.

How can I change this back so I get the real source IP?

I have a pretty common setup with a fiber modem and the WNDR3700 as distribution.

Lasse A Karlsen

Posted 2012-11-08T08:07:17.097

Reputation: 121

Tell us more about your configuration. How did you set up port forwarding exactly? – David Schwartz – 2012-11-08T08:19:57.743

@DavidSchwartz: I just used port range forwarding in the web interface. This is a dump of the nat table: http://pastebin.com/F2U0QW16

– Lasse A Karlsen – 2012-11-08T08:25:37.587

What's the SNAT rule for? – David Schwartz – 2012-11-08T08:29:34.607

I don't know, I haven't added it. Must be something generated by the web interface...? Remove? – Lasse A Karlsen – 2012-11-08T08:34:38.167

MASQUERADE 0 -- anywhere anywhere probably isn't helping. – Xyon – 2012-11-08T13:46:45.620

@Xyon: Changed MASQUERADEing to only external interface, didn't help. – Lasse A Karlsen – 2012-11-08T23:03:52.740

@DavidSchwartz: Removed it, didn't help.. – Lasse A Karlsen – 2012-11-08T23:04:44.097

Answers

0

Put the server in a DMZ. Did your port forwarded services receive publicly sourced IP addresses beforehand?

rjt

Posted 2012-11-08T08:07:17.097

Reputation: 878