При запуске скрипт выдает:
Код: Выделить всё
iptables: No chain/target/match by that name
SIOCADDRT: File exists
SIOCADDRT: File exists
SIOCADDRT: File exists
SIOCADDRT: File exists
SIOCADDRT: File exists
SIOCADDRT: File exists
SIOCADDRT: File exists
iptables: No chain/target/match by that name - реакция на iptables -A INPUT -i ppp0 -m state --state ESTABLISHED,RELATED -j ACCEPT
SIOCADDRT: File exists появляются при многократных запусках route.
Код: Выделить всё
# dmesg|tail -n 20
ACPI: PCI Interrupt 0000:00:1f.5[B] -> Link [LNKB] -> GSI 3 (level, low) -> IRQ 3
PCI: Setting latency timer of device 0000:00:1f.5 to 64
saa7134 ALSA driver for DMA sound loaded
saa7133[0]/alsa: saa7133[0] at 0xff8ff000 irq 5 registered as card -1
intel8x0_measure_ac97_clock: measured 51260 usecs
intel8x0: clocking to 48000
EXT3 FS on hda3, internal journal
EXT2-fs warning (device hda1): ext2_fill_super: mounting ext3 filesystem as ext2
Adding 1028152k swap on /dev/hda2. Priority:-1 extents:1 across:1028152k
e100: eth0: e100_watchdog: link up, 100Mbps, full-duplex
eth1: link up, 100Mbps, full-duplex, lpa 0x45E1
eth2: link up, 100Mbps, full-duplex, lpa 0x45E1
i2c-adapter i2c-1: master_xfer[0] W, addr=0x61, len=4
i2c-adapter i2c-1: master_xfer[0] W, addr=0x61, len=4
i2c-adapter i2c-1: master_xfer[0] W, addr=0x61, len=4
i2c-adapter i2c-1: master_xfer[0] W, addr=0x61, len=4
i2c-adapter i2c-1: master_xfer[0] W, addr=0x61, len=4
i2c-adapter i2c-1: master_xfer[0] W, addr=0x43, len=4
i2c-adapter i2c-1: master_xfer[0] W, addr=0x61, len=4
i2c-adapter i2c-1: master_xfer[0] W, addr=0x43, len=4
Код: Выделить всё
# iptables -L
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all -- home-server.home-network home-server.home-network
ACCEPT all -- anywhere anywhere
Chain FORWARD (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT all -- 192.168.0.0/24 anywhere
ACCEPT all -- anywhere 192.168.0.0/24
ACCEPT all -- anywhere 192.168.0.0/24
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain ALLOW_PORTS (0 references)
target prot opt source destination