LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 09: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 05:14 PM. Reason: NEED
 
Old 04-17-2014, 08:47 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
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, 07: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, 12:15 PM   #4
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
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, 06: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, 07:04 AM   #6
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
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, 07: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, 06: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



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

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

All times are GMT -5. The time now is 09:13 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
Open Source Consulting | Domain Registration