Új hozzászólás Aktív témák

  • dabadab
    titán
    válasz steveetm üzenetére #1066

    A forward az nem eleg, kell maskurade is, ami szinten nem bonyolult, egyetlen szabaly kell az iptables nat tablajanak postrouting chain-jebe:


    root@cucumalac:~# iptables -L -v -t nat
    Chain PREROUTING (policy ACCEPT 645K packets, 42M bytes)
    pkts bytes target prot opt in out source destination

    Chain POSTROUTING (policy ACCEPT 897K packets, 56M bytes)
    pkts bytes target prot opt in out source destination
    89095 5428K MASQUERADE all -- any ppp0 192.168.0.0/16 anywhere

    Chain OUTPUT (policy ACCEPT 889K packets, 55M bytes)
    pkts bytes target prot opt in out source destination



    De ezeket egyebkent remekul megcsinalja magatol az ipmasq csomag (bar bonyolultabb dolgokat mar jobb kezzel csinalni).


    [Szerkesztve]

Új hozzászólás Aktív témák