JimWest Desperado... | Encore moi !
Bon tout d'abord je suis revenu à la config de base sans hostname histoire de pas rajouter des problèmes.
J'ai donc là quand je suis online:
Code :
- [root@lns-vlq-30-str-82-254-34-93 /]# hostname
- lns-vlq-30-str-82-254-34-93.adsl.proxad.net
- [root@lns-vlq-30-str-82-254-34-93 /]# cat etc/hosts
- 127.0.0.1 localhost
|
Le DHCP me fournit bien un nom (ça me permet de voir rapidement sous la console si je suis online ou pas).
Mon ifcfg-eth0 est revenu à :
Code :
- DEVICE=eth0
- BOOTPROTO=dhcp
- ONBOOT=yes
- WIRELESS_ENC_KEY=""
|
Bref, voilà ce que tu m'as demandé de faire :
Quand au démarrage le net ne fonctionne pas j'ai:
Code :
- [root@localhost /]# ifconfig
- eth0 Lien encap:Ethernet HWaddr 00:50:8D:FD:43:4D
- adr inet6: fe80::250:8dff:fefd:434d/64 Scope:Lien
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:21 errors:0 dropped:12 overruns:0 frame:0
- TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 lg file transmission:1000
- RX bytes:2888 (2.8 Kb) TX bytes:2430 (2.3 Kb)
- Interruption:16 Adresse de base:0xbc00
- lo Lien encap:Boucle locale
- inet adr:127.0.0.1 Masque:255.0.0.0
- adr inet6: ::1/128 Scope:Hôte
- UP LOOPBACK RUNNING MTU:16436 Metric:1
- RX packets:110 errors:0 dropped:0 overruns:0 frame:0
- TX packets:110 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 lg file transmission:0
- RX bytes:7190 (7.0 Kb) TX bytes:7190 (7.0 Kb)
- [root@localhost /]# ping www.google.fr
- ping: unknown host www.google.fr
|
Code :
- Shorewall-1.4.8 Status at localhost - mar oct 26 11:41:26 CEST 2004
- Counters reset Tue Oct 26 11:37:13 CEST 2004
- Chain INPUT (policy DROP 0 packets, 0 bytes)
- pkts bytes target prot opt in out source destination
- 110 7190 ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0
- 0 0 DROP !icmp -- * * 0.0.0.0/0 0.0.0.0/0
- state INVALID
- 3 1728 eth0_in all -- eth0 * 0.0.0.0/0 0.0.0.0/0
- 0 0 common all -- * * 0.0.0.0/0 0.0.0.0/0
- 0 0 LOG all -- * * 0.0.0.0/0 0.0.0.0/0
- LOG flags 0 level 6 prefix `Shorewall:INPUT:REJECT:'
- 0 0 reject all -- * * 0.0.0.0/0 0.0.0.0/0
- Chain FORWARD (policy DROP 0 packets, 0 bytes)
- pkts bytes target prot opt in out source destination
- 0 0 DROP !icmp -- * * 0.0.0.0/0 0.0.0.0/0
- state INVALID
- 0 0 eth0_fwd all -- eth0 * 0.0.0.0/0 0.0.0.0/0
- 0 0 common all -- * * 0.0.0.0/0 0.0.0.0/0
- 0 0 LOG all -- * * 0.0.0.0/0 0.0.0.0/0
- LOG flags 0 level 6 prefix `Shorewall:FORWARD:REJECT:'
- 0 0 reject all -- * * 0.0.0.0/0 0.0.0.0/0
- Chain OUTPUT (policy DROP 0 packets, 0 bytes)
- pkts bytes target prot opt in out source destination
- 110 7190 ACCEPT all -- * lo 0.0.0.0/0 0.0.0.0/0
- 0 0 DROP !icmp -- * * 0.0.0.0/0 0.0.0.0/0
- state INVALID
- 0 0 fw2net all -- * eth0 0.0.0.0/0 0.0.0.0/0
- 0 0 common all -- * * 0.0.0.0/0 0.0.0.0/0
- 0 0 LOG all -- * * 0.0.0.0/0 0.0.0.0/0
- LOG flags 0 level 6 prefix `Shorewall:OUTPUT:REJECT:'
- 0 0 reject all -- * * 0.0.0.0/0 0.0.0.0/0
- Chain all2all (0 references)
- pkts bytes target prot opt in out source destination
- 0 0 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0
- state RELATED,ESTABLISHED
- 0 0 newnotsyn tcp -- * * 0.0.0.0/0 0.0.0.0/0
- state NEW tcp flags:!0x16/0x02
- 0 0 common all -- * * 0.0.0.0/0 0.0.0.0/0
- 0 0 LOG all -- * * 0.0.0.0/0 0.0.0.0/0
- LOG flags 0 level 6 prefix `Shorewall:all2all:REJECT:'
- 0 0 reject all -- * * 0.0.0.0/0 0.0.0.0/0
- Chain common (5 references)
- pkts bytes target prot opt in out source destination
- 0 0 icmpdef icmp -- * * 0.0.0.0/0 0.0.0.0/0
- 0 0 reject udp -- * * 0.0.0.0/0 0.0.0.0/0
- udp dpt:135
- 0 0 reject udp -- * * 0.0.0.0/0 0.0.0.0/0
- udp dpts:137:139
- 0 0 reject udp -- * * 0.0.0.0/0 0.0.0.0/0
- udp dpt:445
- 0 0 reject tcp -- * * 0.0.0.0/0 0.0.0.0/0
- tcp dpt:139
- 0 0 reject tcp -- * * 0.0.0.0/0 0.0.0.0/0
- tcp dpt:445
- 0 0 reject tcp -- * * 0.0.0.0/0 0.0.0.0/0
- tcp dpt:135
- 0 0 DROP udp -- * * 0.0.0.0/0 0.0.0.0/0
- udp dpt:1900
- 3 1728 DROP all -- * * 0.0.0.0/0 255.255.255.
- 255
- 0 0 DROP all -- * * 0.0.0.0/0 224.0.0.0/4
- 0 0 reject tcp -- * * 0.0.0.0/0 0.0.0.0/0
- tcp dpt:113
- 0 0 DROP udp -- * * 0.0.0.0/0 0.0.0.0/0
- udp spt:53 state NEW
- Chain dynamic (2 references)
- pkts bytes target prot opt in out source destination
- Chain eth0_fwd (1 references)
- pkts bytes target prot opt in out source destination
- 0 0 dynamic all -- * * 0.0.0.0/0 0.0.0.0/0
- state NEW
- Chain eth0_in (1 references)
- pkts bytes target prot opt in out source destination
- 3 1728 dynamic all -- * * 0.0.0.0/0 0.0.0.0/0
- state NEW
- 3 1728 net2all all -- * * 0.0.0.0/0 0.0.0.0/0
- Chain fw2net (1 references)
- pkts bytes target prot opt in out source destination
- 0 0 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0
- state RELATED,ESTABLISHED
- 0 0 newnotsyn tcp -- * * 0.0.0.0/0 0.0.0.0/0
- state NEW tcp flags:!0x16/0x02
- 0 0 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0
- Chain icmpdef (1 references)
- pkts bytes target prot opt in out source destination
- Chain net2all (1 references)
- pkts bytes target prot opt in out source destination
- 0 0 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0
- state RELATED,ESTABLISHED
- 0 0 newnotsyn tcp -- * * 0.0.0.0/0 0.0.0.0/0
- state NEW tcp flags:!0x16/0x02
- 3 1728 common all -- * * 0.0.0.0/0 0.0.0.0/0
- 0 0 LOG all -- * * 0.0.0.0/0 0.0.0.0/0
- LOG flags 0 level 6 prefix `Shorewall:net2all:DROP:'
- 0 0 DROP all -- * * 0.0.0.0/0 0.0.0.0/0
- Chain newnotsyn (3 references)
- pkts bytes target prot opt in out source destination
- 0 0 LOG all -- * * 0.0.0.0/0 0.0.0.0/0
- LOG flags 0 level 6 prefix `Shorewall:newnotsyn:DROP:'
- 0 0 DROP all -- * * 0.0.0.0/0 0.0.0.0/0
- Chain reject (11 references)
- pkts bytes target prot opt in out source destination
- 0 0 REJECT tcp -- * * 0.0.0.0/0 0.0.0.0/0
- reject-with tcp-reset
- 0 0 REJECT udp -- * * 0.0.0.0/0 0.0.0.0/0
- reject-with icmp-port-unreachable
- 0 0 REJECT icmp -- * * 0.0.0.0/0 0.0.0.0/0
- reject-with icmp-host-unreachable
- 0 0 REJECT all -- * * 0.0.0.0/0 0.0.0.0/0
- reject-with icmp-host-prohibited
- Chain shorewall (0 references)
- pkts bytes target prot opt in out source destination
- Oct 25 18:56:14 newnotsyn:DROP:IN= OUT=eth0 SRC=82.254.34.93 DST=66.102.11.99 LE
- N=40 TOS=0x00 PREC=0x00 TTL=64 ID=14057 DF PROTO=TCP SPT=32776 DPT=80 WINDOW=197
- 68 RES=0x00 ACK PSH FIN URGP=0
- Oct 25 18:56:15 net2all:DROP:IN=eth0 OUT= SRC=82.254.34.93 DST=82.254.34.255 LEN
- =100 TOS=0x00 PREC=0x00 TTL=64 ID=71 DF PROTO=UDP SPT=631 DPT=631 LEN=80
- Oct 25 18:56:17 newnotsyn:DROP:IN= OUT=eth0 SRC=82.254.34.93 DST=66.102.11.99 LE
- N=40 TOS=0x00 PREC=0x00 TTL=64 ID=14058 DF PROTO=TCP SPT=32776 DPT=80 WINDOW=197
- 68 RES=0x00 ACK PSH FIN URGP=0
- Oct 25 18:56:24 newnotsyn:DROP:IN= OUT=eth0 SRC=82.254.34.93 DST=66.102.11.99 LE
- N=40 TOS=0x00 PREC=0x00 TTL=64 ID=14059 DF PROTO=TCP SPT=32776 DPT=80 WINDOW=197
- 68 RES=0x00 ACK PSH FIN URGP=0
- Oct 25 18:56:38 newnotsyn:DROP:IN= OUT=eth0 SRC=82.254.34.93 DST=66.102.11.99 LE
- N=40 TOS=0x00 PREC=0x00 TTL=64 ID=14060 DF PROTO=TCP SPT=32776 DPT=80 WINDOW=197
- 68 RES=0x00 ACK PSH FIN URGP=0
- Oct 25 18:56:46 net2all:DROP:IN=eth0 OUT= SRC=82.254.34.93 DST=82.254.34.255 LEN
- =100 TOS=0x00 PREC=0x00 TTL=64 ID=72 DF PROTO=UDP SPT=631 DPT=631 LEN=80
- Oct 25 19:05:15 net2all:DROP:IN=eth0 OUT= SRC=82.254.34.93 DST=82.254.34.255 LEN
- =100 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=631 DPT=631 LEN=80
- Oct 25 19:05:46 net2all:DROP:IN=eth0 OUT= SRC=82.254.34.93 DST=82.254.34.255 LEN
- =100 TOS=0x00 PREC=0x00 TTL=64 ID=1 DF PROTO=UDP SPT=631 DPT=631 LEN=80
- Oct 25 19:06:17 net2all:DROP:IN=eth0 OUT= SRC=82.254.34.93 DST=82.254.34.255 LEN
- =100 TOS=0x00 PREC=0x00 TTL=64 ID=2 DF PROTO=UDP SPT=631 DPT=631 LEN=80
- Oct 25 19:06:21 net2all:DROP:IN=eth0 OUT= SRC=200.150.164.229 DST=82.254.34.93 L
- EN=48 TOS=0x00 PREC=0x00 TTL=108 ID=50399 DF PROTO=TCP SPT=1067 DPT=17300 WINDOW
- =64240 RES=0x00 SYN URGP=0
- Oct 25 19:06:48 net2all:DROP:IN=eth0 OUT= SRC=82.254.34.93 DST=82.254.34.255 LEN
- =100 TOS=0x00 PREC=0x00 TTL=64 ID=3 DF PROTO=UDP SPT=631 DPT=631 LEN=80
- Oct 25 19:07:19 net2all:DROP:IN=eth0 OUT= SRC=82.254.34.93 DST=82.254.34.255 LEN
- =100 TOS=0x00 PREC=0x00 TTL=64 ID=4 DF PROTO=UDP SPT=631 DPT=631 LEN=80
- Oct 25 19:07:50 net2all:DROP:IN=eth0 OUT= SRC=82.254.34.93 DST=82.254.34.255 LEN
- =100 TOS=0x00 PREC=0x00 TTL=64 ID=5 DF PROTO=UDP SPT=631 DPT=631 LEN=80
- Oct 25 19:08:21 net2all:DROP:IN=eth0 OUT= SRC=82.254.34.93 DST=82.254.34.255 LEN
- =100 TOS=0x00 PREC=0x00 TTL=64 ID=6 DF PROTO=UDP SPT=631 DPT=631 LEN=80
- Oct 25 19:08:52 net2all:DROP:IN=eth0 OUT= SRC=82.254.34.93 DST=82.254.34.255 LEN
- =100 TOS=0x00 PREC=0x00 TTL=64 ID=7 DF PROTO=UDP SPT=631 DPT=631 LEN=80
- Oct 25 19:12:54 net2all:DROP:IN=eth0 OUT= SRC=82.254.34.93 DST=82.254.34.255 LEN
- =100 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=631 DPT=631 LEN=80
- Oct 25 19:13:25 net2all:DROP:IN=eth0 OUT= SRC=82.254.34.93 DST=82.254.34.255 LEN
- =100 TOS=0x00 PREC=0x00 TTL=64 ID=1 DF PROTO=UDP SPT=631 DPT=631 LEN=80
- Oct 25 19:13:56 net2all:DROP:IN=eth0 OUT= SRC=82.254.34.93 DST=82.254.34.255 LEN
- =100 TOS=0x00 PREC=0x00 TTL=64 ID=2 DF PROTO=UDP SPT=631 DPT=631 LEN=80
- Oct 25 19:14:27 net2all:DROP:IN=eth0 OUT= SRC=82.254.34.93 DST=82.254.34.255 LEN
- =100 TOS=0x00 PREC=0x00 TTL=64 ID=3 DF PROTO=UDP SPT=631 DPT=631 LEN=80
- Oct 25 19:14:58 net2all:DROP:IN=eth0 OUT= SRC=82.254.34.93 DST=82.254.34.255 LEN
- =100 TOS=0x00 PREC=0x00 TTL=64 ID=4 DF PROTO=UDP SPT=631 DPT=631 LEN=80
- NAT Table
- Chain PREROUTING (policy ACCEPT 30 packets, 3054 bytes)
- pkts bytes target prot opt in out source destination
- Chain POSTROUTING (policy ACCEPT 15 packets, 1020 bytes)
- pkts bytes target prot opt in out source destination
- Chain OUTPUT (policy ACCEPT 15 packets, 1020 bytes)
- pkts bytes target prot opt in out source destination
- Mangle Table
- Chain PREROUTING (policy ACCEPT 140 packets, 10244 bytes)
- pkts bytes target prot opt in out source destination
- 140 10244 pretos all -- * * 0.0.0.0/0 0.0.0.0/0
- Chain INPUT (policy ACCEPT 113 packets, 8918 bytes)
- pkts bytes target prot opt in out source destination
- Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
- pkts bytes target prot opt in out source destination
- Chain OUTPUT (policy ACCEPT 110 packets, 7190 bytes)
- pkts bytes target prot opt in out source destination
- 110 7190 outtos all -- * * 0.0.0.0/0 0.0.0.0/0
- Chain POSTROUTING (policy ACCEPT 110 packets, 7190 bytes)
- pkts bytes target prot opt in out source destination
- Chain outtos (1 references)
- pkts bytes target prot opt in out source destination
- 0 0 TOS tcp -- * * 0.0.0.0/0 0.0.0.0/0
- tcp dpt:22 TOS set 0x10
- 0 0 TOS tcp -- * * 0.0.0.0/0 0.0.0.0/0
- tcp spt:22 TOS set 0x10
- 0 0 TOS tcp -- * * 0.0.0.0/0 0.0.0.0/0
- tcp dpt:21 TOS set 0x10
- 0 0 TOS tcp -- * * 0.0.0.0/0 0.0.0.0/0
- tcp spt:21 TOS set 0x10
- 0 0 TOS tcp -- * * 0.0.0.0/0 0.0.0.0/0
- tcp spt:20 TOS set 0x08
- 0 0 TOS tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:20 TOS set 0x08
- Chain pretos (1 references)
- pkts bytes target prot opt in out source destination
- 0 0 TOS tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:22 TOS set 0x10
- 0 0 TOS tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp spt:22 TOS set 0x10
- 0 0 TOS tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:21 TOS set 0x10
- 0 0 TOS tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp spt:21 TOS set 0x10
- 0 0 TOS tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp spt:20 TOS set 0x08
- 0 0 TOS tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:20 TOS set 0x08
- tcp 6 1 TIME_WAIT src=127.0.0.1 dst=127.0.0.1 sport=32778 dport=111 src=127 .0.0.1 dst=127.0.0.1 sport=111 dport=32778 [ASSURED] use=1
- tcp 6 1 TIME_WAIT src=127.0.0.1 dst=127.0.0.1 sport=32779 dport=32768 src=1 27.0.0.1 dst=127.0.0.1 sport=32768 dport=32779 [ASSURED] use=1
|
Après un service network restart :
Code :
- [root@localhost /]# service network restart
- Arrêt de l'interface eth0 : [ OK ]
- Arrêt de l'interface loopback : [ OK ]
- Application des paramètres réseau [ OK ]
- Démarrage de l'interface loopback : [ OK ]
- Activation de l'interface eth0 : [ OK ]
|
Code :
- [root@localhost /]# ifconfig
- eth0 Lien encap:Ethernet HWaddr 00:50:8D:FD:43:4D
- inet adr:82.254.34.93 Bcast:82.254.34.255 Masque:255.255.255.0
- adr inet6: fe80::250:8dff:fefd:434d/64 Scope:Lien
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:52 errors:0 dropped:12 overruns:0 frame:0
- TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 lg file transmission:1000
- RX bytes:6184 (6.0 Kb) TX bytes:4555 (4.4 Kb)
- Interruption:16 Adresse de base:0xbc00
- lo Lien encap:Boucle locale
- inet adr:127.0.0.1 Masque:255.0.0.0
- adr inet6: ::1/128 Scope:Hôte
- UP LOOPBACK RUNNING MTU:16436 Metric:1
- RX packets:110 errors:0 dropped:0 overruns:0 frame:0
- TX packets:110 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 lg file transmission:0
- RX bytes:7190 (7.0 Kb) TX bytes:7190 (7.0 Kb)
|
Le ping :
Code :
- [root@localhost /]# ping www.google.fr
- PING www.google.akadns.net (66.102.11.104) 56(84) bytes of data.
- 64 bytes from 66.102.11.104: icmp_seq=1 ttl=243 time=81.7 ms
- 64 bytes from 66.102.11.104: icmp_seq=2 ttl=243 time=80.5 ms
- 64 bytes from 66.102.11.104: icmp_seq=3 ttl=243 time=79.6 ms
- 64 bytes from 66.102.11.104: icmp_seq=4 ttl=243 time=78.8 ms
- 64 bytes from 66.102.11.104: icmp_seq=5 ttl=243 time=78.0 ms
- 64 bytes from 66.102.11.104: icmp_seq=6 ttl=243 time=88.9 ms
- 64 bytes from 66.102.11.104: icmp_seq=7 ttl=243 time=76.3 ms
- 64 bytes from 66.102.11.104: icmp_seq=8 ttl=243 time=87.3 ms
- --- www.google.akadns.net ping statistics ---
- 8 packets transmitted, 8 received, 0% packet loss, time 7006ms
- rtt min/avg/max/mdev = 76.375/81.441/88.972/4.185 ms
|
Un autre service shorewall status, je sais pas si il fallait :
Code :
- Shorewall-1.4.8 Status at localhost - mar oct 26 11:44:27 CEST 2004
- Counters reset Tue Oct 26 11:37:13 CEST 2004
- Chain INPUT (policy DROP 0 packets, 0 bytes)
- pkts bytes target prot opt in out source destination
- 110 7190 ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0
- 0 0 DROP !icmp -- * * 0.0.0.0/0 0.0.0.0/0 state INVALID
- 54 7372 eth0_in all -- eth0 * 0.0.0.0/0 0.0.0.0/0
- 0 0 common all -- * * 0.0.0.0/0 0.0.0.0/0
- 0 0 LOG all -- * * 0.0.0.0/0 0.0.0.0/0 LOG flags 0 level 6 prefix `Shorewall:INPUT:REJECT:'
- 0 0 reject all -- * * 0.0.0.0/0 0.0.0.0/0
- Chain FORWARD (policy DROP 0 packets, 0 bytes)
- pkts bytes target prot opt in out source destination
- 0 0 DROP !icmp -- * * 0.0.0.0/0 0.0.0.0/0 state INVALID
- 0 0 eth0_fwd all -- eth0 * 0.0.0.0/0 0.0.0.0/0
- 0 0 common all -- * * 0.0.0.0/0 0.0.0.0/0
- 0 0 LOG all -- * * 0.0.0.0/0 0.0.0.0/0 LOG flags 0 level 6 prefix `Shorewall:FORWARD:REJECT:'
- 0 0 reject all -- * * 0.0.0.0/0 0.0.0.0/0
- Chain OUTPUT (policy DROP 0 packets, 0 bytes)
- pkts bytes target prot opt in out source destination
- 110 7190 ACCEPT all -- * lo 0.0.0.0/0 0.0.0.0/0
- 0 0 DROP !icmp -- * * 0.0.0.0/0 0.0.0.0/0 state INVALID
- 49 3620 fw2net all -- * eth0 0.0.0.0/0 0.0.0.0/0
- 0 0 common all -- * * 0.0.0.0/0 0.0.0.0/0
- 0 0 LOG all -- * * 0.0.0.0/0 0.0.0.0/0 LOG flags 0 level 6 prefix `Shorewall:OUTPUT:REJECT:'
- 0 0 reject all -- * * 0.0.0.0/0 0.0.0.0/0
- Chain all2all (0 references)
- pkts bytes target prot opt in out source destination
- 0 0 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
- 0 0 newnotsyn tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp flags:!0x16/0x02
- 0 0 common all -- * * 0.0.0.0/0 0.0.0.0/0
- 0 0 LOG all -- * * 0.0.0.0/0 0.0.0.0/0 LOG flags 0 level 6 prefix `Shorewall:all2all:REJECT:'
- 0 0 reject all -- * * 0.0.0.0/0 0.0.0.0/0
- Chain common (5 references)
- pkts bytes target prot opt in out source destination
- 0 0 icmpdef icmp -- * * 0.0.0.0/0 0.0.0.0/0
- 0 0 reject udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:135
- 1 78 reject udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpts:137:139
- 0 0 reject udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:445
- 0 0 reject tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:139
- 11 528 reject tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:445
- 9 432 reject tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:135
- 0 0 DROP udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:1900
- 5 2880 DROP all -- * * 0.0.0.0/0 255.255.255.255
- 0 0 DROP all -- * * 0.0.0.0/0 224.0.0.0/4
- 0 0 reject tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:113
- 0 0 DROP udp -- * * 0.0.0.0/0 0.0.0.0/0 udp spt:53 state NEW
- Chain dynamic (2 references)
- pkts bytes target prot opt in out source destination
- Chain eth0_fwd (1 references)
- pkts bytes target prot opt in out source destination
- 0 0 dynamic all -- * * 0.0.0.0/0 0.0.0.0/0 state NEW
- Chain eth0_in (1 references)
- pkts bytes target prot opt in out source destination
- 30 4318 dynamic all -- * * 0.0.0.0/0 0.0.0.0/0 state NEW
- 54 7372 net2all all -- * * 0.0.0.0/0 0.0.0.0/0
- Chain fw2net (1 references)
- pkts bytes target prot opt in out source destination
- 33 1751 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
- 0 0 newnotsyn tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp flags:!0x16/0x02
- 16 1869 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0
- Chain icmpdef (1 references)
- pkts bytes target prot opt in out source destination
- Chain net2all (1 references)
- pkts bytes target prot opt in out source destination
- 24 3054 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
- 0 0 newnotsyn tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp flags:!0x16/0x02
- 30 4318 common all -- * * 0.0.0.0/0 0.0.0.0/0
- 4 400 LOG all -- * * 0.0.0.0/0 0.0.0.0/0 LOG flags 0 level 6 prefix `Shorewall:net2all:DROP:'
- 4 400 DROP all -- * * 0.0.0.0/0 0.0.0.0/0
- Chain newnotsyn (3 references)
- pkts bytes target prot opt in out source destination
- 0 0 LOG all -- * * 0.0.0.0/0 0.0.0.0/0 LOG flags 0 level 6 prefix `Shorewall:newnotsyn:DROP:'
- 0 0 DROP all -- * * 0.0.0.0/0 0.0.0.0/0
- Chain reject (11 references)
- pkts bytes target prot opt in out source destination
- 20 960 REJECT tcp -- * * 0.0.0.0/0 0.0.0.0/0 reject-with tcp-reset
- 1 78 REJECT udp -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-port-unreachable
- 0 0 REJECT icmp -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-unreachable
- 0 0 REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
- Chain shorewall (0 references)
- pkts bytes target prot opt in out source destination
- Oct 25 18:56:38 newnotsyn:DROP:IN= OUT=eth0 SRC=82.254.34.93 DST=66.102.11.99 LEN=40 TOS=0x00 PREC=0x00 TTL=64 ID=14060 DF PROTO=TCP SPT=32776 DPT=80 WINDOW=19768 RES=0x00 ACK PSH FIN URGP=0
- Oct 25 18:56:46 net2all:DROP:IN=eth0 OUT= SRC=82.254.34.93 DST=82.254.34.255 LEN=100 TOS=0x00 PREC=0x00 TTL=64 ID=72 DF PROTO=UDP SPT=631 DPT=631 LEN=80
- Oct 25 19:05:15 net2all:DROP:IN=eth0 OUT= SRC=82.254.34.93 DST=82.254.34.255 LEN=100 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=631 DPT=631 LEN=80
- Oct 25 19:05:46 net2all:DROP:IN=eth0 OUT= SRC=82.254.34.93 DST=82.254.34.255 LEN=100 TOS=0x00 PREC=0x00 TTL=64 ID=1 DF PROTO=UDP SPT=631 DPT=631 LEN=80
- Oct 25 19:06:17 net2all:DROP:IN=eth0 OUT= SRC=82.254.34.93 DST=82.254.34.255 LEN=100 TOS=0x00 PREC=0x00 TTL=64 ID=2 DF PROTO=UDP SPT=631 DPT=631 LEN=80
- Oct 25 19:06:21 net2all:DROP:IN=eth0 OUT= SRC=200.150.164.229 DST=82.254.34.93 LEN=48 TOS=0x00 PREC=0x00 TTL=108 ID=50399 DF PROTO=TCP SPT=1067 DPT=17300 WINDOW=64240 RES=0x00 SYN URGP=0
- Oct 25 19:06:48 net2all:DROP:IN=eth0 OUT= SRC=82.254.34.93 DST=82.254.34.255 LEN=100 TOS=0x00 PREC=0x00 TTL=64 ID=3 DF PROTO=UDP SPT=631 DPT=631 LEN=80
- Oct 25 19:07:19 net2all:DROP:IN=eth0 OUT= SRC=82.254.34.93 DST=82.254.34.255 LEN=100 TOS=0x00 PREC=0x00 TTL=64 ID=4 DF PROTO=UDP SPT=631 DPT=631 LEN=80
- Oct 25 19:07:50 net2all:DROP:IN=eth0 OUT= SRC=82.254.34.93 DST=82.254.34.255 LEN=100 TOS=0x00 PREC=0x00 TTL=64 ID=5 DF PROTO=UDP SPT=631 DPT=631 LEN=80
- Oct 25 19:08:21 net2all:DROP:IN=eth0 OUT= SRC=82.254.34.93 DST=82.254.34.255 LEN=100 TOS=0x00 PREC=0x00 TTL=64 ID=6 DF PROTO=UDP SPT=631 DPT=631 LEN=80
- Oct 25 19:08:52 net2all:DROP:IN=eth0 OUT= SRC=82.254.34.93 DST=82.254.34.255 LEN=100 TOS=0x00 PREC=0x00 TTL=64 ID=7 DF PROTO=UDP SPT=631 DPT=631 LEN=80
- Oct 25 19:12:54 net2all:DROP:IN=eth0 OUT= SRC=82.254.34.93 DST=82.254.34.255 LEN=100 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=631 DPT=631 LEN=80
- Oct 25 19:13:25 net2all:DROP:IN=eth0 OUT= SRC=82.254.34.93 DST=82.254.34.255 LEN=100 TOS=0x00 PREC=0x00 TTL=64 ID=1 DF PROTO=UDP SPT=631 DPT=631 LEN=80
- Oct 25 19:13:56 net2all:DROP:IN=eth0 OUT= SRC=82.254.34.93 DST=82.254.34.255 LEN=100 TOS=0x00 PREC=0x00 TTL=64 ID=2 DF PROTO=UDP SPT=631 DPT=631 LEN=80
- Oct 25 19:14:27 net2all:DROP:IN=eth0 OUT= SRC=82.254.34.93 DST=82.254.34.255 LEN=100 TOS=0x00 PREC=0x00 TTL=64 ID=3 DF PROTO=UDP SPT=631 DPT=631 LEN=80
- Oct 25 19:14:58 net2all:DROP:IN=eth0 OUT= SRC=82.254.34.93 DST=82.254.34.255 LEN=100 TOS=0x00 PREC=0x00 TTL=64 ID=4 DF PROTO=UDP SPT=631 DPT=631 LEN=80
- Oct 26 11:42:34 net2all:DROP:IN=eth0 OUT= SRC=82.254.34.93 DST=82.254.34.255 LEN=100 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=631 DPT=631 LEN=80
- Oct 26 11:43:05 net2all:DROP:IN=eth0 OUT= SRC=82.254.34.93 DST=82.254.34.255 LEN=100 TOS=0x00 PREC=0x00 TTL=64 ID=1 DF PROTO=UDP SPT=631 DPT=631 LEN=80
- Oct 26 11:43:36 net2all:DROP:IN=eth0 OUT= SRC=82.254.34.93 DST=82.254.34.255 LEN=100 TOS=0x00 PREC=0x00 TTL=64 ID=2 DF PROTO=UDP SPT=631 DPT=631 LEN=80
- Oct 26 11:44:07 net2all:DROP:IN=eth0 OUT= SRC=82.254.34.93 DST=82.254.34.255 LEN=100 TOS=0x00 PREC=0x00 TTL=64 ID=3 DF PROTO=UDP SPT=631 DPT=631 LEN=80
- NAT Table
- Chain PREROUTING (policy ACCEPT 58 packets, 5514 bytes)
- pkts bytes target prot opt in out source destination
- Chain POSTROUTING (policy ACCEPT 51 packets, 3689 bytes)
- pkts bytes target prot opt in out source destination
- Chain OUTPUT (policy ACCEPT 31 packets, 2889 bytes)
- pkts bytes target prot opt in out source destination
- Mangle Table
- Chain PREROUTING (policy ACCEPT 196 packets, 16158 bytes)
- pkts bytes target prot opt in out source destination
- 196 16158 pretos all -- * * 0.0.0.0/0 0.0.0.0/0
- Chain INPUT (policy ACCEPT 164 packets, 14562 bytes)
- pkts bytes target prot opt in out source destination
- Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
- pkts bytes target prot opt in out source destination
- Chain OUTPUT (policy ACCEPT 159 packets, 10810 bytes)
- pkts bytes target prot opt in out source destination
- 159 10810 outtos all -- * * 0.0.0.0/0 0.0.0.0/0
- Chain POSTROUTING (policy ACCEPT 163 packets, 11210 bytes)
- pkts bytes target prot opt in out source destination
- Chain outtos (1 references)
- pkts bytes target prot opt in out source destination
- 0 0 TOS tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:22 TOS set 0x10
- 0 0 TOS tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp spt:22 TOS set 0x10
- 0 0 TOS tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:21 TOS set 0x10
- 0 0 TOS tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp spt:21 TOS set 0x10
- 0 0 TOS tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp spt:20 TOS set 0x08
- 0 0 TOS tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:20 TOS set 0x08
- Chain pretos (1 references)
- pkts bytes target prot opt in out source destination
- 0 0 TOS tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:22 TOS set 0x10
- 0 0 TOS tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp spt:22 TOS set 0x10
- 0 0 TOS tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:21 TOS set 0x10
- 0 0 TOS tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp spt:21 TOS set 0x10
- 0 0 TOS tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp spt:20 TOS set 0x08
- 0 0 TOS tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:20 TOS set 0x08
- udp 17 9 src=82.254.34.93 dst=82.254.34.255 sport=631 dport=631 [UNREPLIED] src=82.254.34.255 dst=82.254.34.93 sport=631 dport=631 use=1
- udp 17 139 src=82.254.34.93 dst=213.228.0.23 sport=32768 dport=53 src=213.228.0.23 dst=82.254.34.93 sport=53 dport=32768 [ASSURED] use=1
- udp 17 18 src=82.254.34.93 dst=82.254.34.254 sport=68 dport=67 src=82.254.34.254 dst=82.254.34.93 sport=67 dport=68 use=1
- udp 17 70 src=82.254.34.93 dst=212.27.39.1 sport=32768 dport=53 src=212.27.39.1 dst=82.254.34.93 sport=53 dport=32768 [ASSURED] use=1
|
Le DHCP me fournit bien le hostname quand je suis online, mais il faut réouvrir la console après le service network restart, histoire d'actualiser je suppose ?
l'invite devient donne alors ça :
Code :
- [JimWest@lns-vlq-30-str-82-254-34-93 JimWest]$
|
J'espère que j'ai pas fait d'erreur et que ça te sera utile. Jim |