User Tools

Site Tools


snippets:iptables

-t nat

    # Source-NAT: Absender zu 123.123.123.213 aendern
    $> iptables [...] -j SNAT --to-source 123.123.123.123

    # Maskieren: Absender auf ausgehendes Netzwerkinterface aendern
    $> iptables [...] -j MASQUERADE

    # Destination-NAT: Empfaenger zu 123.123.123.123, Port 22 aendern
    $> iptables [...] -j DNAT --to-destination 123.123.123.123:22

    # Umleitung: Auf lokalen Port 8080 umleiten
    $> iptables [...] -j REDIRECT --to-ports 8080
snippets/iptables.txt · Last modified: by allspark_cp