[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

ipmasqadm portfw



Hello all,

I am having difficulties getting port forwarding to work on a fresh woody
install with the default 2.2.19 kernel. With minimal setup the local port
does not open....

    # Enable IP forwarding since it is disabled by default since
    echo "1" > /proc/sys/net/ipv4/ip_forward

    # Enable automatic IP defragmenting since it is disabled by default
    echo "1" > /proc/sys/net/ipv4/ip_always_defrag

    # Flush existing rules
    /sbin/ipchains -F
    /usr/sbin/ipmasqadm portfw -f

    # And blindly accept everything
    /sbin/ipchains -P input ACCEPT
    /sbin/ipchains -P output ACCEPT
    /sbin/ipchains -P forward MASQ

    # Send HTTP traffic to web server
    /usr/sbin/ipmasqadm portfw -a -P tcp -L $localip 80 -R $webserver 80

$ nmap localhost

    Port       State       Service
    22/tcp     open        ssh
    25/tcp     open        smtp

Shouldn't I see port 80 in this scan?

Thanks in advance,

Roger




Reply to: