LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 11-09-2012, 02:40 AM   #1
lakarlsen
LQ Newbie
 
Registered: Nov 2012
Posts: 1

Rep: Reputation: Disabled
Keep source ip after forwarding


I just started using dd-wrt on my wndr3700v2, but now all my incomming connections to a server inside the network gets the same source ip as the router. How can I change this so I get the real source ip?

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

Output of the nat-table: http://pastebin.com/B6zqRRsq
Output of the rest of the tables: http://pastebin.com/RQwHCdA8

Any help would be appreciated, thanks.
 
Old 11-12-2012, 02:24 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,344

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
I can't see the images from here due to content filtering (there's a proper attachment upload feature here you might like to use instead) but it would sound like there's a MASQUERADE target in the POSTROUTING table that would be doing this that you could probably remove.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Forwarding packets without changing source IP CaptainJack Linux - Security 11 06-18-2012 09:54 AM
IPTables NAT to Windows Machine, not working when forwarding source IP h02 Linux - Networking 2 04-18-2012 11:32 AM
binding source address for ssh port forwarding Skaperen Linux - Networking 1 12-01-2011 10:55 PM
Source Port forwarding/redirect tomli Linux - Networking 2 07-24-2011 09:07 PM
Port Forwarding Based on the Source linuxboy69 Linux - Networking 2 01-06-2004 04:44 PM


All times are GMT -5. The time now is 06:42 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration