Вручную сбросьте iptables в спасательном режиме

Некоторые порты SMB блока хостинговых компаний, входящие на их сети (поскольку SMB на базе Windows известно небезопасен). Ваш хост позволяет это (или это Ваша сеть?)

0
задан 15 December 2013 в 14:11
2 ответа

grml won't actually have loaded your hosts' iptables rules, so they won't be available.

If you followed some popular guides and are using NetworkManager, then you might find the rules located in /etc/iptables.*, so removing them (or providing an empty file) upon startup might be your best bet.

It all boils down to how you saved the rules to begin with, so any details on how you got there to begin with would be helpful.

You could also try appending this segment to your server's startup, probably /etc/rc.local:

#!/bin/sh -e
sudo iptables -X
sudo iptables -t nat -F
sudo iptables -t nat -X
sudo iptables -t mangle -F
sudo iptables -t mangle -X
sudo iptables -P INPUT ACCEPT
sudo iptables -P FORWARD ACCEPT
sudo iptables -P OUTPUT ACCEPT

Please remember that when in grml, you're running another version of Linux, so you'd have to mount your disk, and modify those files, not the running grml environment.

1
ответ дан 4 December 2019 в 17:52

Если вы настроили таблицы ip через webmin и отметили «Включить брандмауэр во время загрузки», вы должны удалить эту строку:

post-up iptables-restore < /etc/iptables.up.rules

в

etc/network/interfaces

, это верно для Debian, поэтому я бы сделал это представьте себе и Ubuntu

0
ответ дан 4 December 2019 в 17:52

Теги

Похожие вопросы