/l3/users/17-12-2012/NT-Lnet/debian1.net.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 |
|
#host ya.ru
ya.ru has address 93.158.134.203 ya.ru has address 213.180.193.3 ya.ru has address 213.180.204.3 ya.ru has address 77.88.21.3 ya.ru has address 87.250.250.3 ya.ru has address 87.250.250.203 ya.ru has address 87.250.251.3 ya.ru has address 93.158.134.3 ya.ru mail is handled by 10 mx.yandex.ru. |
#ping ya.ru
PING ya.ru (93.158.134.3) 56(84) bytes of data. 64 bytes from www.yandex.ru (93.158.134.3): icmp_req=1 ttl=58 time=18.1 ms 64 bytes from www.yandex.ru (93.158.134.3): icmp_req=2 ttl=58 time=19.7 ms ^C --- ya.ru ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 18.163/18.932/19.702/0.781 ms |
#vim /etc/resolv.conf
--- /dev/null 2012-12-17 19:01:14.436000008 +0200 +++ iptables 2012-12-18 16:46:17.000000000 +0200 @@ -0,0 +1,2 @@ +#!/bin/bash +iptables-restore < /etc/iptables.rule |
#~
search net.nt nameserver 192.168.13.253 "/etc/resolv.conf" 2L, 40C |
#~
Chain PREROUTING (policy ACCEPT) target prot opt source destination Chain INPUT (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain POSTROUTING (policy ACCEPT) target prot opt source destination |
#man iptables
|
#cd /etc/network/if-up.d/
|
#ls -hl
итого 12K -rwxr-xr-x 1 root root 4,5K Мар 28 2012 mountnfs -rwxr-xr-x 1 root root 849 Дек 21 2009 openssh-server |
#cd ..
|
#cd if-down.d/
|
#ls -hl
итого 0 |
#vim iptables
![]() |
#cd ..
|
#cd if-up.d/
|
#ls -hl
итого 12K -rwxr-xr-x 1 root root 4,5K Мар 28 2012 mountnfs -rwxr-xr-x 1 root root 849 Дек 21 2009 openssh-server |
#vim iptables
![]() |
#ls -hl
итого 16K -rw-r--r-- 1 root root 50 Дек 18 16:46 iptables -rwxr-xr-x 1 root root 4,5K Мар 28 2012 mountnfs -rwxr-xr-x 1 root root 849 Дек 21 2009 openssh-server |
#chmod +x iptables
|
#ls -hl
итого 16K -rwxr-xr-x 1 root root 50 Дек 18 16:46 iptables -rwxr-xr-x 1 root root 4,5K Мар 28 2012 mountnfs -rwxr-xr-x 1 root root 849 Дек 21 2009 openssh-server |
#cd ..
|
#cd if-down.d/
|
#ls -hl
итого 4,0K -rw-r--r-- 1 root root 47 Дек 18 16:45 iptables |
#chmod +x iptables
|
#ls -hl
итого 4,0K -rwxr-xr-x 1 root root 47 Дек 18 16:45 iptables |
#iptables -L
Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination |
#iptables -t nat -L
Chain PREROUTING (policy ACCEPT) target prot opt source destination Chain INPUT (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain POSTROUTING (policy ACCEPT) target prot opt source destination |
|