Pessoal
Espero não ir para o Idiots Corner
Em meus testes na minha pequena LAN virtual, vejo que a execução de exploits e/ou um scan (auxiliary mode) não se completam ou então ocorre algum erro. Eu acho que o motivo é por não ter alguma porta aberta no R1.
Estou tentanto abrir a porta 4444 e não estou conseguindo. Apliquei dois pares de regras, separadamente, no Iptables:
1º Par
# iptables -A INPUT -i eth0 -p tcp -s 192.168.1.0/24 --dport 4444 -j ACCEPT
# iptables -A OUTPUT -p tcp --dport 4444 -j ACCEPT----------------# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- 192.168.1.0/24 anywhere tcp dpt:4444
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:4444
2º Par
# iptables -A INPUT -i eth0 -p tcp --dport 4444 -j ACCEPT
# iptables -A OUTPUT -o eth0 -p tcp --sport 4444 -j ACCEPT-----------------# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:4444
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp spt:4444
Conferindo (em ambos os casos):
Ou# nmap -sT localhost
Starting Nmap 5.35DC1 ( Nmap - Free Security Scanner For Network Exploration & Security Audits. ) at 2010-10-10 13:44 BRT
Nmap scan report for localhost (127.0.0.1)
Host is up (0.0019s latency).
Not shown: 999 closed ports
PORT STATE SERVICE
9050/tcp open tor-socks
------------------# nmap -sT 192.168.1.2
Starting Nmap 5.35DC1 ( Nmap - Free Security Scanner For Network Exploration & Security Audits. ) at 2010-10-10 14:18 BRT
Nmap scan report for 192.168.1.2
Host is up (0.0017s latency).
All 1000 scanned ports on 192.168.1.2 are closed
Nmap done: 1 IP address (1 host up) scanned in 0.34 seconds
Não sei o que estou fazendo de errado, ou então se devo abrir essa porta pela interface do modem em primeiro lugar para depois liberar pelo Iptables
Grato![]()






