Re: Entirely ignoring TCP and UDP checksum in kernel level

From: Brad Campbell (brad_at_wasp.net.au)
Date: 08/22/04

  • Next message: Pascal Schmidt: "Re: PATCH: cdrecord: avoiding scsi device numbering for ide devices"
    Date:	Sun, 22 Aug 2004 17:10:54 +0400
    To: Josan Kadett <corporate@superonline.com>
    
    

    Josan Kadett wrote:
    > I am still persistent on the fact that NAT should work with this sense.
    >
    > I just enable NAT with the following command
    >
    > iptables -t nat -A POSTROUTING -o eth1 -j SNAT --to 192.168.1.5
    >
    > This IP 192.168.1.5 is our patched linux server which is allowed to acccess
    > 192.168.1.77
    >

    Ok.. Idea time..
    Can you add another linux box in there. Something like

    Client (192.168.0.30) ---> Box1Eth0(192.168.0.1) SNAT Box1Eth1(192.168.1.99) --->
    Box2Eth0(192.168.1.100) () Box2Eth1(192.168.77.99) ---> HorridBuggyBox(192.168.77.1)

    With Box 1 doing the NAT and Box 2 having the patch and just doing normal routing.

    Have a route in Box 1 set to send 192.168.77.0/24 to the gateway at 192.168.1.100 which will know to
    send anything destined for 192.168.77.1 out eth1.

    If I try it, it's going to work fine as I don't have a box that munges IP's like yours does so I
    can't provide a full test. (I guess I could butcher another UML to do it if I really had to)

    Doing this stuff is so much easier when you have the faulty device in front of you. Your not in the
    UAE by any chance ;p)

    Regards,
    Brad
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Pascal Schmidt: "Re: PATCH: cdrecord: avoiding scsi device numbering for ide devices"

    Relevant Pages

    • Re: 2.4.23 crash on Intel SDS2
      ... > luck so started disabling things. ... > # This patch fixes a logic bug in NAT range calculations, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Weird Problem with TCP
      ... it is not running any session tracking neither it ... > does nat. ... It is just a firewall with around 1600 rules in FORWARD ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: netfilter IPv6 support
      ... NAT is limited to count*65535 connections anyway. ... interNAT to a homogenous internet as it was before and intended to be. ... If someone wants then to put 32k hosts behind a single linux router he ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Entirely ignoring TCP and UDP checksum in kernel level
      ... > including NAT because the hack is in the kernel level. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Entirely ignoring TCP and UDP checksum in kernel level
      ... NAT does not work, ... the new packet seems to arrive from correct source 77.1 ... Can you send me your iptables configuration? ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)