LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-12-2016, 09:19 AM   #1
Hasan5599
Member
 
Registered: Jan 2014
Location: Bangladesh
Distribution: Ubuntu, Mint, Arch ( running)
Posts: 42

Rep: Reputation: Disabled
Unhappy Kali port is not openning................


Hello expert guys..........
I have fallen in pretty serious problem . I am using kali linux in virttual box and tring to open port 4444 for hacking my other machine through Mataspolit. but when I am scanning my kali port then it is showing as closed then I tried to open it using iptables but still it is not showing open. How to open in it please give me suggestion .....

thanks..




root@kali:~# iptables -I INPUT -p tcp --dport 4444 --syn -j ACCEPT
root@kali:~# iptables -I INPUT -p udp --dport 4444 -j ACCEPT
root@kali:~# service iptables save
iptables: unrecognized service
root@kali:~# iptables save
Bad argument `save'
Try `iptables -h' or 'iptables --help' for more information.
root@kali:~# iptables -L -n
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:4444
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:4444 flags:0x17/0x02

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
root@kali:~# nmap -sV -p4444 10.0.2.15

Starting Nmap 6.49BETA4 ( https://nmap.org ) at 2012-12-16 15:49 EST
Nmap scan report for 10.0.2.15
Host is up (0.00050s latency).
PORT STATE SERVICE VERSION
4444/tcp closed krb524

Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 2.75 seconds
root@kali:~#

Last edited by Hasan5599; 12-12-2016 at 09:24 AM.
 
Old 12-12-2016, 01:05 PM   #2
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Somebody, like yourself, With a good many years of Linux use and some professional security knowledge ought to be able to ask a better question, surely?
 
Old 12-12-2016, 01:14 PM   #3
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
iptables does not open and close ports. It simply provides rules for traffic crossing various ports. You definitely need to read up on iptables and nmap, because the way you are using them is not sane. If you want to be a cracker, you must gain the experience through actually understanding how the tools work.

But one thing, if you're port scanning the machine from itself, then you should use 127.0.0.1, or localhost.
 
Old 12-12-2016, 01:59 PM   #4
c0wb0y
Member
 
Registered: Jan 2012
Location: Inside the oven
Distribution: Windows
Posts: 417

Rep: Reputation: 74
I hope I can open the door by just staring at it .
 
2 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Openning port for battle.net iptables babbab Linux - Networking 3 04-02-2010 10:01 AM
Port openning on external interface satish Linux - Networking 5 06-26-2006 07:20 AM
Openning a port...doesn't work?! vous Linux - Networking 10 04-09-2005 11:29 PM
Openning Port need Help jadid Linux - Networking 4 11-30-2004 11:42 PM
openning port 22 for ssh krzykard Linux - Security 4 10-22-2003 09:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration