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

Re: port forwarding



aggiungendo la regola ho:

Chain PREROUTING (policy ACCEPT 4 packets, 583 bytes)
 pkts bytes target     prot opt in     out     source
destination
    3   180 DNAT       tcp  --  ppp0   *       0.0.0.0/0
0.0.0.0/0           tcp dpt:20022 to:192.168.1.254:7777

Chain POSTROUTING (policy ACCEPT 6 packets, 390 bytes)
 pkts bytes target     prot opt in     out     source
destination
    9   594 MASQUERADE  all  --  *      ppp0    0.0.0.0/0
0.0.0.0/0
    1    70 MASQUERADE  all  --  *      eth0    0.0.0.0/0
0.0.0.0/0
    0     0 MASQUERADE  all  --  *      eth1    0.0.0.0/0
0.0.0.0/0

Chain OUTPUT (policy ACCEPT 15 packets, 994 bytes)
 pkts bytes target     prot opt in     out     source
destination

ppp0 è l'interfaccia che viene attivata da pppoeconf, eth1 è la scheda
(non ha ip) collegata al modem, eth0 la lan.

Pol


Reply to: