LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-16-2014, 10:28 PM   #1
maxH22
LQ Newbie
 
Registered: Apr 2014
Posts: 8

Rep: Reputation: Disabled
Find opened ports and forwarding ports


Hi everybody. i am very glad to be part of this forum. i just started using Backbox linux and i need an extremey sharp guidance to master it.
first of all i'd like to know:

HOW TO OPEN PORTS WITH UBUNTU FROM A DISTANT SERVER?

Last edited by maxH22; 04-17-2014 at 06:14 PM. Reason: NEED
 
Old 04-17-2014, 09:47 PM   #2
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora
Posts: 1,687

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
Quote:
Originally Posted by maxH22 View Post
Hi everybody. i am very glad to be part of this forum. i just started using Backbox linux and i need an extremey sharp guidance to master it.
first of all i'd like to know:

HOW TO OPEN PORTS WITH UBUNTU FROM A DISTANT SERVER?
The natural way is logging in from the distant server and then using the iptables command. This requires one port to be open, typically SSH (22).

Maybe you are looking for port knocking, a solution that opens a port by accessing certain ports in a certain order. This description seems to be readable and competent.
 
Old 04-18-2014, 08:17 AM   #3
maxH22
LQ Newbie
 
Registered: Apr 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
Red face

thanks for answering me...but i had been told to register to no-ip what i just did. and now i do not know the following step ahead of that...
 
Old 04-19-2014, 01:15 PM   #4
JeremyBoden
Member
 
Registered: Nov 2011
Posts: 939

Rep: Reputation: 174Reputation: 174
Most ISP's allocate personal accounts a different ip address, fairly frequently.
Unless you pay for a static ip address, you can't access your PC remotely.

no-ip provides a way round this.

You will still need to port forward a port from your router to your PC.
You configure your router to do this.

You will then get port scanned a lot on this open port.
 
Old 04-19-2014, 07:16 PM   #5
maxH22
LQ Newbie
 
Registered: Apr 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
is it free to do it on no-ip?
 
Old 04-20-2014, 08:04 AM   #6
JeremyBoden
Member
 
Registered: Nov 2011
Posts: 939

Rep: Reputation: 174Reputation: 174
See an explanation at https://en.wikipedia.org/wiki/Dynamic_DNS
Choose one from http://dnslookup.me/dynamic-dns/
BTW no-ip seems to require Windows<spit>

http://www.dnsdynamic.org/ appears to be free.
You will need to update periodically via its API (periodically) with your current ip address.
You might need to set up a cron job to do this.

You should check what software (if any) is getting installed on your PC.
 
Old 04-20-2014, 08:24 AM   #7
maxH22
LQ Newbie
 
Registered: Apr 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
thanks i will check that!
 
Old 05-14-2014, 07:26 AM   #8
maxH22
LQ Newbie
 
Registered: Apr 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
I have been trying all the itables commands but when i tried to launch metaslpoit they say there are no opened ports and i find all the rules that i saved disappeared as if i did not save it...please help me out
 
  


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
How to Close opened ports??? ajeetraina Linux - Server 2 12-03-2007 03:25 AM
what are the ports opened? ZAMO Linux - Networking 2 05-10-2007 06:49 AM
How to check what ports are opened Mic Q SUSE / openSUSE 6 08-23-2005 10:04 PM
Which ports should be opened? ivanatora Linux - Security 8 09-28-2003 09:24 AM
Ports that are already opened? ksoma Linux - Newbie 3 06-29-2003 09:13 AM


All times are GMT -5. The time now is 05:28 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration