Is this a bridging scenario?

Discussion in 'Linux Networking' started by Al, Mar 24, 2012.

  1. Al

    Al Guest

    Tcptrackoutput:


    Client Server State Idle Speed

    118.92.xx.55:58674 192.168.1.71:80 RESET 1s 0 b/s
    118.92.xx.55:58673 192.168.1.71:80 RESET 1s 0 b/s
    118.92.xx.55:58676 192.168.1.71:80 RESET 1s 0 b/s

    SHows the connections hitting wlan0, but if I change to eth0 I see
    nothing. Something is wrong with the rule.
     
    Al, Apr 11, 2012
    #21
    1. Advertisements

  2. Al a écrit :
    You wrote :
    "I open port 5555 on the router and forward it to wlan0 (192.168.1.71)"

    So I assumed that the connections would arrive at the Linux box on port
    5555 :
    "If the router redirects port 5555 to 192.168.1.71 without changing
    the destination port"

    But obviously they arrive on port 80, so you can ignore my rule and just
    use the one you proposed :

    iptables -t nat -A PREROUTING -i wlan0 -d 192.168.1.71 -p tcp --dport
    80 -j DNAT --to 192.168.70.140

    And make sure ip_forward is enabled.
    No, unless you also have filtering rules.
     
    Pascal Hambourg, Apr 11, 2012
    #22
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.