OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Martin Koenig (lists_at_mkoenig.com)
Date: Tue Jul 16 2002 - 14:39:25 CDT

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    Hi Anonymous,

    > What is the best way to forward TCP and UDP ports from
    > one computer to
    > another?

    Assuming you use NAT and 2.4 kernel:

    iptables -A PREROUTING -t nat -p [PROTO] --dport [PORT] -i [I_IF] -j
    DNAT --to [DEST]

    [PROTO]: tcp / udp
    [PORT]: Port on public IP, the one you wish to forward
    [I_IF]: incoming (public) interface ( e.g. ppp0 )
    [DEST]: destination ip:destination port

    // Martin Koenig

    PS: Why not use your real Name?
    PPS: Now what part of your question exactly was security-related?

    -- 
    To unsubscribe, e-mail: suse-security-unsubscribesuse.com
    For additional commands, e-mail: suse-security-helpsuse.com
    Security-related bug reports go to securitysuse.de, not here