[Tech] masquerading

paolo@palmerini.org paolo@palmerini.org
Lun 6 Giu 2005 23:46:53 CEST


> paolo@palmerini.org wrote:
>> il server é collegato ad internet tramite un modem adsl sagem FAST 800
>> che funziona (dal server riesco a collegarmi correttamente e non ho i
>> problemi di cui sopra). allego qui sotto per completezza l'output di
>> ifconfig, route e iptables -L. sono sicuro che sarą una banalitą
>> enorme e chiedo scusa in anticipo, ma non riesco a vederla...
> Farebbe comodo anche quello di iptables -t nat -L.
> Inoltre non mi e` chiaro come fai passare i NEW.
>

ecco, aggiungo qui sotto l'output di iptables-t nat -L insieme aquello
degli altri comandi che ho gią postato e insieme e lsmod...

non so pił che pesci pigliare...
p.

######################### ifconfig.out ################################
eth0      Link encap:Ethernet  HWaddr 00:30:84:73:7F:90
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:19197 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9758 errors:0 dropped:0 overruns:5 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1845643 (1.7 MiB)  TX bytes:1909048 (1.8 MiB)
          Interrupt:9

eth1      Link encap:Ethernet  HWaddr 00:60:4C:72:B8:DB
          UP BROADCAST RUNNING MULTICAST  MTU:65535  Metric:1
          RX packets:3314 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3264 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1289172 (1.2 MiB)  TX bytes:308433 (301.2 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:100 (100.0 b)  TX bytes:100 (100.0 b)

ppp0      Link encap:Point-to-Point Protocol
          inet addr:81.192.126.235  P-t-P:81.192.120.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:3117 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3063 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:1280558 (1.2 MiB)  TX bytes:241405 (235.7 KiB)

######################### iptables.out ################################
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy DROP)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere           state
RELATED,ESTABLISHED
ACCEPT     all  --  anywhere             anywhere
LOG        all  --  anywhere             anywhere           LOG level warning

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination


######################### iptables_nat.out ################################
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination
MASQUERADE  all  --  anywhere             anywhere

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination



######################### lsmod.out ################################
Module                  Size  Used by    Not tainted
ip_nat_ftp              2656   0  (unused)
ip_conntrack_irc        3040   0  (unused)
ip_conntrack_ftp        3680   1
ipt_state                576   1  (autoclean)
ipt_MASQUERADE          1344   1  (autoclean)
ppp_async               6528   1  (autoclean)
ppp_generic            18988   3  (autoclean) [ppp_async]
slhc                    4416   0  (autoclean) [ppp_generic]
eagle-usb             110564   2
ipt_LOG                 3264   1  (autoclean)
iptable_mangle          2176   0  (autoclean) (unused)
iptable_filter          1728   1  (autoclean)
iptable_nat            16244   2  [ip_nat_ftp ipt_MASQUERADE]
ip_conntrack           19028   2  [ip_nat_ftp ip_conntrack_irc
ip_conntrack_ftp ipt_state ipt_MASQUERADE iptable_nat]
ip_tables              11360   8  [ipt_state ipt_MASQUERADE ipt_LOG
iptable_mangle iptable_filter iptable_nat]
uhci                   23656   0  (unused)
usbcore                56672   1  [eagle-usb uhci]


######################### route.out ################################
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
adsl-1-120-192- *               255.255.255.255 UH    0      0        0 ppp0
localnet        *               255.255.255.0   U     0      0        0 eth0
default         adsl-1-120-192- 0.0.0.0         UG    0      0        0 ppp0



-- 
paolo palmerini
http://palmerini.org





Maggiori informazioni sulla lista flug-tech