Cov txheej txheem:

Kuv yuav kaw qhov chaw nres nkoj hauv Linux li cas?
Kuv yuav kaw qhov chaw nres nkoj hauv Linux li cas?

Video: Kuv yuav kaw qhov chaw nres nkoj hauv Linux li cas?

Video: Kuv yuav kaw qhov chaw nres nkoj hauv Linux li cas?
Video: yuav coj li cas kom luag nyiam 2024, Tej zaum
Anonim

Txhawm rau kaw qhov chaw nres nkoj qhib:

  1. Nkag mus rau lub server console.
  2. Ua raws li cov lus txib hauv qab no, hloov lub PORT placeholder nrog tus naj npawb ntawm cov chaw nres nkoj kom raug kaw: Debian: sudo ufw tsis lees paub PORT . CentOS: sudo firewall-cmd --zone=public --permanent --remove- chaw nres nkoj = PORT /tcp sudo firewall-cmd --reload.

Tib neeg kuj nug, kuv yuav kaw qhov chaw nres nkoj li cas?

Yog koj xav tau kaw ib qhib chaw nres nkoj , koj tuaj yeem ua li ntawd los ntawm kev siv Windows Firewall (Windows Defender Firewall rau Windows 10). Piv txwv li, cia peb hais tias koj xav tau kaw qhov chaw nres nkoj 5500 rau tag nrho cov inbound kev sib txuas. Ua raws li cov kauj ruam hauv qab no. Qhib Windows Firewall los ntawm mus rau Pib | Tswj Vaj Huam Sib Luag | Windows Firewall.

Tom qab ntawd, lo lus nug yog, Kuv yuav thaiv qhov chaw nres nkoj hauv Linux li cas? Thaiv Tuaj Chaw nres nkoj Rau thaiv tus chaw nres nkoj tsuas yog ntawm qhov tshwj xeeb interface siv qhov kev xaiv -i. Rau thaiv qhov chaw nres nkoj tsuas yog muab IP lossis Subnet siv qhov kev xaiv -s los qhia qhov subnet lossis IP ntxiv. Txuag cov iptables rau cov cai kom tsis tu ncua hla reboots. Txuag cov iptables rau cov cai kom tsis tu ncua hla reboots.

Ua li no, kuv yuav kaw qhov chaw nres nkoj hauv Ubuntu li cas?

Rau kaw tus chaw nres nkoj tus lej manually ua ntej tus txheej txheem npe / id yuav tsum pom tias yog tuav lub chaw nres nkoj qhib thiab tom qab ntawd siv cov lus txib tua ntawm cov txheej txheem ntawd. Hauv qhov piv txwv saum toj no nws pom tias chaw nres nkoj 8888 tau tuav hauv kev siv los ntawm kev hais kom ua java nrog pid 8461. Ntawm no peb siv -u rau udp chaw nres nkoj.

Kuv tuaj yeem kuaj tau li cas yog tias qhov chaw nres nkoj qhib?

Nrhiav qhib cov chaw nres nkoj ntawm lub computer, siv netstat kab hais kom ua. Mus tso saib tag nrho qhib cov chaw nres nkoj , qhib DOS hais kom ua, ntaus netstat thiab nias Enter. Sau tag nrho mloog chaw nres nkoj , siv netstat -an | nrhiav /i "mloog" hais kom ua. Pom dab tsi chaw nres nkoj yog nyob rau hauv lub computer tiag sib txuas lus nrog, siv netstat -an | nrhiav /i "tsim" hais kom ua.

Pom zoo: