Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.networking > #2881
| From | Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> |
|---|---|
| Newsgroups | comp.os.linux.networking |
| Subject | Re: Accessing devices behind a router |
| Date | 2014-03-30 14:09 +0200 |
| Organization | Plouf ! |
| Message-ID | <lh91h1$2va5$1@saria.nerim.net> (permalink) |
| References | <lh7s3s$kdn$1@news.albasani.net> <wwvvbuw5ejg.fsf@l1AntVDjLrnP7Td3DQJ8ynzIq3lJMueXf87AxnpFoA.invalid> <lh8vef$ik8$1@dont-email.me> |
Hello, David Brown a écrit : > On 30/03/14 09:30, Richard Kettlewell wrote: >> >> The answer is that you need an additional rewrite rule in M which >> rewrites the source address to M (and only applies to packets received >> from your local network). If M happens to be a Linux box then the >> iptables SNAT target can do it. > > An alternative way to handle this situation is using DNS and different > name-host resolution in different situations. Note that this option does not work if the same name is used for several services/ports (ex : HTTP and FTP) which are forwarded to different hosts. > An alternative possibility is to use iptable rules on P to check the > incoming packets checking for T->P packets that come from the MAC > address of M, and apply SNAT at that point so that the web server sees > the packet as M->P and sends the return to T back via M. This cannot be performed with the usual stateful NAT available with iptables (SNAT), and requires stateless NAT (RAWSNAT). > Another possibility is simply to put an explicit route in P that directs > all packets to T via M. When the outgoing packet belongs to a connection which was forwarded from the LAN by the router. Yes, I like it. Requires just a bit of iptables and routing rules.
Back to comp.os.linux.networking | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Accessing devices behind a router Clark Smith <noaddress@nowhere.net> - 2014-03-30 01:30 +0000
Re: Accessing devices behind a router Richard Kettlewell <rjk@greenend.org.uk> - 2014-03-30 08:30 +0100
Re: Accessing devices behind a router David Brown <david.brown@hesbynett.no> - 2014-03-30 13:33 +0200
Re: Accessing devices behind a router Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2014-03-30 14:09 +0200
Re: Accessing devices behind a router David Brown <david.brown@hesbynett.no> - 2014-03-31 09:22 +0200
Re: Accessing devices behind a router Clark Smith <noaddress@nowhere.net> - 2014-04-03 22:13 +0000
Re: Accessing devices behind a router David Brown <david.brown@hesbynett.no> - 2014-04-04 09:01 +0200
Re: Accessing devices behind a router Jorgen Grahn <grahn+nntp@snipabacken.se> - 2014-04-04 16:33 +0000
Re: Accessing devices behind a router David Brown <david.brown@hesbynett.no> - 2014-04-06 14:26 +0200
Re: Accessing devices behind a router Clark Smith <noaddress@nowhere.net> - 2014-04-04 19:20 +0000
DNS caching servers [Was: Accessing devices behind a router] Ian Zimmerman <itz@buug.org> - 2014-04-08 10:32 -0700
csiph-web