LinuxQuestions.org
Visit Jeremy's Blog.
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
  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,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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



Similar Threads
Thread Thread Starter Forum Replies Last Post
binding source address for ssh port forwarding Skaperen Linux - Networking 3 08-04-2021 08:55 PM
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
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:11 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration