Blocking all ports and opening only specific ports in linux
paunsa ni? gusto lang ko iopen ports 80,22,3724
tabang mga bro
Blocking all ports and opening only specific ports in linux
paunsa ni? gusto lang ko iopen ports 80,22,3724
tabang mga bro
hmmmmmmmmm...very broad question
Application usually open a ports for you such as http uses port 80....and it is a deafult config
.........But if you want to open the ports or change the ports to something you want, yes you can programatically.
Another method is to use your built in firewall or SElinux.you can open and closed ports you want.
@dontknowmewho
Another method is to use your built in firewall or SElinux.you can open and closed ports you want.
bro,
this method only blocks or allows specific services using the specific ports..., its better if you set-up a proxy server squid, then you can configure it to block/allow specific ports.
![]()
It's actually very simple. Just use iptables.
Create a text file on your /etc/rc.d folder (or any folder for that matter). Then put your iptables commands on that file, make that file executable and your done.
By default, your iptables are set to allow all (you can confirm this by issuing iptables -nL). Just change the default policy to drop all, then create another policy to allow the ports you want.
How to set-up proxy server? I got some ideas on youtube
YouTube - Broadcast Yourself.
if u want to use the cli use the UFW but kung gusto ka mas sayon tapos naa ui just use firestarter and best partner nya NMAP(to evaluate lang sa ports nimo kung kinsa ang open or close).......
Similar Threads |
|