Is this a bridging scenario?

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

  1. Al

    Al Guest


    Client Server State Idle Speed

    118.92.xx.55:58674 RESET 1s 0 b/s
    118.92.xx.55:58673 RESET 1s 0 b/s
    118.92.xx.55:58676 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
    1. Advertisements

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

    So I assumed that the connections would arrive at the Linux box on port
    5555 :
    "If the router redirects port 5555 to 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 -p tcp --dport
    80 -j DNAT --to

    And make sure ip_forward is enabled.
    No, unless you also have filtering rules.
    Pascal Hambourg, Apr 11, 2012
    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.