LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   RedHat Linux firewall tester (https://www.linuxquestions.org/questions/linux-security-4/redhat-linux-firewall-tester-8734/)

david_xk 11-14-2001 08:59 PM

RedHat Linux firewall tester
 
:(
hello :
i have made a firewall by ipchains.
but now i want to test it and i must do it myself .
so i need the related documents, tools, ......
please
thanks you
your david
Nov 15,2001

lsof 11-15-2001 05:07 AM

Re: RedHat Linux firewall tester
 
Quote:

Originally posted by david_xk
[Bi have made a firewall by ipchains. but now i want to test it and i must do it myself. [/B]
i was going 2 recommend this thread:
http://www.linuxquestions.org/questi...&threadid=8694

but seeing that u want 2 do it u'rself look for a tool called nmap.

raz 11-16-2001 08:49 AM

I'll go along with lsof's answer.

Install nmap on a system that's external to your firewalled system.
If not it's hard to confirm your really seeing what others would get.

Then test for open ports using the following commands.

nmap -sT -d -e eth0 -S 202.34.181.234 -g 53 -P0 -n -r -T4 -p 1-10000 -O 170.23.45.1
nmap -sT -d -e eth0 -S 202.34.181.234 -g 20 -P0 -n -r -T4 -p 1-10000 -O 170.23.45.1

-e eth0 (make this your outgoing internet connection)
-S 202.34.181.234 (make this the internet of the nmap system)
O 170.23.45.1 (make this your IP address of the system your testing)
-T4 (change this to T3 then T2 if your ping rate to the system is higher then 200ms etc etc)

Don't try to scan anyone other then your firewall with these settings as it's not very stealthy, but it will find open connection for you.

Next step is to fake SYN flags and random ack numbers with the following scan.

nmap -sA -d -e eth0 -S 202.34.181.234 -g 53 -P0 -n -r -T4 -p 1-10000 -O 170.23.45.1

if you get filtered ports then they are not open, any port that doesn't respond is open but filtered with stateful filtering.

use "man nmap" for more info.

/Raz


All times are GMT -5. The time now is 11:34 PM.