štvrtok 2. januára 2020

Suse 12 - problém s firewallom

Suse 12 - problém s firewallom

Nainštalovali sme si Suse 12 a nevedeli sme sa pripojiť cez putty na ssh. (Boli sme zúfalí.)




Riešenie je: vypnúť firewall

Suse má vlastný firewall (nie firewalld ani iptables, aspoň defaultne po inštalácii nie)

názov firewallu: SuSEfirewall2



1) systemctl status SuSEfirewall2


- bežal


2)systemctl stop SuSEfirewall2

-vypnúť, stopnúť

3) systemctl disable SuSEfirewall2


- aby nenabehol po štarte

4) systemctl status SuSEfirewall2


linux-tiak:~ # systemctl status SuSEfirewall2
SuSEfirewall2.service - SuSEfirewall2 phase 2
          Loaded: loaded (/usr/lib/systemd/system/SuSEfirewall2.service; disabled)
          Active: inactive (dead) since Thu, 2020-01-02 14:50:06 CET; 8min ago
        Main PID: 1183 (code=exited, status=0/SUCCESS)
          CGroup: name=systemd:/system/SuSEfirewall2.service

Jan 02 14:47:11 linux-tiak.site systemd[1]: Starting SuSEfirewall2 phase 2...
Jan 02 14:47:11 linux-tiak.site systemd[1]: Started SuSEfirewall2 phase 2.
Jan 02 14:47:11 linux-tiak.site SuSEfirewall2[1194]: Setting up rules from /e...
Jan 02 14:47:11 linux-tiak.site SuSEfirewall2[1265]: Firewall rules successfu...
Jan 02 14:50:06 linux-tiak.site systemd[1]: Stopping SuSEfirewall2 phase 2...
Jan 02 14:50:06 linux-tiak.site SuSEfirewall2[1891]: Firewall rules unloaded.
Jan 02 14:50:06 linux-tiak.site systemd[1]: Stopped SuSEfirewall2 phase 2.





a ssh beží:

problém ešte môže byť s tým, že ssh nemá povolené prihlasovanie cez heslo (defaultne)

- zmeníme v sshd configu (/etc/ssh/sshd_config)

odkaz: https://superuser.com/questions/705766/how-to-disable-susefirewall2 

Žiadne komentáre:

Zverejnenie komentára