Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.networking > #1276
| From | Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> |
|---|---|
| Newsgroups | comp.os.linux.networking |
| Subject | Re: Is this a bridging scenario? |
| Date | 2012-04-10 20:30 +0200 |
| Organization | Plouf ! |
| Message-ID | <jm1u90$1rkd$1@saria.nerim.net> (permalink) |
| References | (8 earlier) <ae19d8e4-3a63-4590-bd08-67f643df1b8c@w6g2000pbp.googlegroups.com> <m3lim4j1rz.fsf@hemphills.net> <41cda2ac-704c-407d-9716-fdd9ddba0011@s10g2000pbc.googlegroups.com> <jlvc4f$u73$1@saria.nerim.net> <f2b02ff3-451d-4079-b537-8af9cd9c2dc0@w17g2000yqe.googlegroups.com> |
Al a écrit : > > Not sure what was wrong, but finally, when I ssh into the linux box > via wlan0 (192.168.1.71) I can ping the camera (192.168.70.140) via > eth0 (192.168.70.121) > > By default access to the camera is via port 80, so now its IP table > time so I can access the camera from the inet (the router in use here > doesnt support static routes, so I open port 5555 on the router and > forward it to wlan0 (192.168.1.71) and need a similar rule in the > linux box. From what you wrote above the rules should be: > > iptables -t nat -A PREROUTING -i wlan0 -d 192.168.1.71 -p tcp --dport > 80 -j DNAT --to 192.168.70.140 > > Where 80 is the port the camera listens on. What I dont understand is > how this rule still allows me to access the linux box, cause I have > setup the router to forward 8888 to port 22 on wlan0 192.168.1.71 for > ssh. The rule above appears that any inbound traffic to wlan0 gets > forwarded to port 80 of the camera? With the rule above, TCP connections to 192.168.1.71 port 80 are redirected to 192.168.70.140 (same port). 1) SSH connections on port 22 are not affected. 2) If the router redirects port 5555 to 192.168.1.71 without changing the destination port, this is useless. The rule must redirect port 5555 to port 80 : iptables -t nat -A PREROUTING -i wlan0 -d 192.168.1.71 -p tcp --dport 5555 -j DNAT --to 192.168.70.140:80
Back to comp.os.linux.networking | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Is this a bridging scenario? Al <bigal.nz@gmail.com> - 2012-03-24 15:55 -0700
Re: Is this a bridging scenario? Al <bigal.nz@gmail.com> - 2012-03-24 15:57 -0700
Re: Is this a bridging scenario? Aragorn <stryder@telenet.be.invalid> - 2012-03-25 09:26 +0200
Re: Is this a bridging scenario? Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2012-03-25 10:56 +0200
Re: Is this a bridging scenario? Aragorn <stryder@telenet.be.invalid> - 2012-03-25 12:19 +0200
Re: Is this a bridging scenario? Al <bigal.nz@gmail.com> - 2012-04-08 05:00 -0700
Re: Is this a bridging scenario? Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2012-04-08 14:20 +0200
Re: Is this a bridging scenario? Al <bigal.nz@gmail.com> - 2012-04-08 06:10 -0700
Re: Is this a bridging scenario? Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2012-04-08 16:28 +0200
Re: Is this a bridging scenario? Al <bigal.nz@gmail.com> - 2012-04-08 12:39 -0700
Re: Is this a bridging scenario? Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2012-04-08 22:32 +0200
Re: Is this a bridging scenario? Al <bigal.nz@gmail.com> - 2012-04-09 08:28 -0700
Re: Is this a bridging scenario? Scott Hemphill <hemphill@hemphills.net> - 2012-04-09 12:41 -0400
Re: Is this a bridging scenario? Al <bigal.nz@gmail.com> - 2012-04-09 11:52 -0700
Re: Is this a bridging scenario? Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2012-04-09 21:09 +0200
Re: Is this a bridging scenario? Al <bigal.nz@gmail.com> - 2012-04-10 01:56 -0700
Re: Is this a bridging scenario? Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2012-04-10 20:30 +0200
Re: Is this a bridging scenario? Al <bigal.nz@gmail.com> - 2012-04-10 16:30 -0700
Re: Is this a bridging scenario? Al <bigal.nz@gmail.com> - 2012-04-10 19:23 -0700
Re: Is this a bridging scenario? Al <bigal.nz@gmail.com> - 2012-04-10 22:54 -0700
Re: Is this a bridging scenario? Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2012-04-11 09:33 +0200
Re: Is this a bridging scenario? Scott Hemphill <hemphill@hemphills.net> - 2012-04-09 18:19 -0400
csiph-web