Strona 1 z 2
[+]Problem przy restarcie iptables w Debian 8.4
: 07 maja 2016, 23:37
autor: ddebny
sudo service iptables restart
"failed to restart iptables.service unit iptables.service failed to load no such file or directory"
W czym tkwi problem? Mam czysty netinstall x64 8.4. W x32 jest to samo.
Re: Problem przy restarcie iptables w Debian 8.4
: 08 maja 2016, 08:50
autor: dedito
Re: Problem przy restarcie iptables w Debian 8.4
: 08 maja 2016, 09:19
autor: ddebny
Wynik:
ii iptables 1.4.21-2+b1 i386 admin
instration tool for packet filtering and NAT
Re: Problem przy restarcie iptables w Debian 8.4
: 08 maja 2016, 09:30
autor: Yampress
[root@debian /home/yampress]# service iptables
iptables: unrecognized service
[root@debian /home/yampress]#
Nie ma iptables w services.
To jest polecenie dawno nie używanego sysvinit, który teraz jest zastąpiony przez systemd
Jakieś stare masz materiały do nauki.
Re: Problem przy restarcie iptables w Debian 8.4
: 08 maja 2016, 09:37
autor: ddebny
To jak dać restart jeśli w wersji debiana 8.4 nie ma go w /etc/init.d ? W debianie 7 iptables jest w init.d.
Wprowadziłem nowe dane MASQUERADE i potrzebuję dać resa.
Re: Problem przy restarcie iptables w Debian 8.4
: 08 maja 2016, 09:42
autor: Yampress
Gdzie, co i jak wprowadziłeś?
Skąd miałeś informacje, że tam, to trzeba wprowadzać?
Re: Problem przy restarcie iptables w Debian 8.4
: 08 maja 2016, 09:49
autor: ddebny
Uczę się routingu. Połączenie pomiędzy maszynami już mam, ale eth1 nie pobiera neta z eth0 tak więc potrzebuję zrobić MASQUERADE. Po wprowadzeniu regułek:
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -A FORWARD -i eth1 -j ACCEPT
Potrzebuję zrobić restart. Myślałem, że iptables działa na zasadzie usługi.
Re: Problem przy restarcie iptables w Debian 8.4
: 08 maja 2016, 09:53
autor: Yampress
Nie działa.
restarty usługi = weź i wyczyyść wszystkie reguły firewala. Są do tego polecenia.
Re: Problem przy restarcie iptables w Debian 8.4
: 08 maja 2016, 09:56
autor: ddebny
Ok

Czyli wprowadzone reguły powinny działać od razu?
Re: Problem przy restarcie iptables w Debian 8.4
: 08 maja 2016, 10:01
autor: Yampress
No tak
Są reguły które czyszczą wszystkie wprowadzone wcześniej reguły.