Re: Port Forwarding

Tom Eastep
Thu, 17 Mar 2011 18:09:56 -0000

On 3/17/11 10:49 AM, CACook@quantum-sci.com wrote:
>> Your routing is wrong. Note that it is trying to route the packet back
>> out of eth0.
>>
>> How have you configured eth2?
>
> Noticed that, but don''t know why.  (Debian Testing)  I''ve
deinstalled network-manager and manually edit /etc/network/interfaces like I
always have:
> allow-hotplug eth2
> iface eth2 inet static
> 	address 10.5.42.4
> 	netmask 255.255.255.0
> 	network 10.5.42.0
> 	broadcast 10.5.42.255
>
> # route
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
> 10.5.42.0       *               255.255.255.0   U     0      0        0
eth2
> localnet        *               255.255.255.0   U     0      0        0
eth0
> default         hex.darkmatt 0.0.0.0         UG    0      0        0 eth0
>
>
>> Let''s get one working first. And if you have additional
problems, please
>> include the output of ''shorewall dump'' as an
attachment to your report.
>
> Attached.

The camera is at 10.5.42.40 but your DNAT rule says 10.5.12.40.

-Tom
--
Tom Eastep        \ When I die, I want to go like my Grandfather who
Shoreline,         \ died peacefully in his sleep. Not screaming like
Washington, USA     \ all of the passengers in his car
http://shorewall.net \________________________________________________



------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.