LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-11-2010, 01:02 PM   #16
unixfool
Member
 
Registered: May 2005
Location: Northern VA
Distribution: Slackware, Ubuntu, FreeBSD, OpenBSD, OS X
Posts: 782
Blog Entries: 8

Rep: Reputation: 158Reputation: 158

Quote:
Originally Posted by Hangdog42 View Post
How about setting the static IP at the server? Most routers use a fairly limited number of the available IP addresses for DHCP, so as long as you set the server to an IP outside of that range, it should be good.
__
That's how I normally do it. I prefer static IPs but some systems don't respond well, so I have them use DHCP...the rest are static and outside the DHCP pool.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 05-11-2010, 01:06 PM   #17
StupidNewbie
Member
 
Registered: Dec 2007
Posts: 71

Rep: Reputation: 16
Quote:
Originally Posted by Hangdog42 View Post
How about setting the static IP at the server? Most routers use a fairly limited number of the available IP addresses for DHCP, so as long as you set the server to an IP outside of that range, it should be good.
__
...or make a DHCP reservation for it so even if it uses DHCP it will always get the same IP.
 
Old 05-12-2010, 04:38 AM   #18
Joe of Loath
Member
 
Registered: Dec 2009
Location: Bristol, UK
Distribution: Ubuntu, Debian, Arch.
Posts: 152

Original Poster
Rep: Reputation: 28
Well, after much fiddling and begging *nix using friends to SSH to me, I can confirm it works. Just. I still can't reserve an IP for it, as the router doesn't like the hostname. It comes up with 'unknown' or a random string of characters, when it should be 'lovro'. I'm going to wipe it and put debian on anyway, fedora is unstable on this box. Maybe that will help *rolls eyes*

Oh, and I can't SSH from school, as I can't ping my IP (read from the dyndns site, school blocks my DNS), and nmap tells me it's a switch. Which means I can't get through their firewall somewhere. I'm going to keep trying, try a few different techniques.

Thanks to all who have helped, it's all been very informative and I know what to do in a few different situations now.

Last edited by Joe of Loath; 05-12-2010 at 04:40 AM.
 
Old 05-12-2010, 10:31 AM   #19
SuperJediWombat!
Member
 
Registered: Apr 2009
Location: Perth, Australia
Distribution: Ubuntu/CentOS
Posts: 208

Rep: Reputation: 51
Quote:
Originally Posted by Joe of Loath View Post
I still can't reserve an IP for it, as the router doesn't like the hostname.
It should be reserving the IP address using your servers MAC address. If it also wants a hostname, you can put anything in there it will not affect the port forwarding.
 
Old 05-12-2010, 10:49 AM   #20
unixfool
Member
 
Registered: May 2005
Location: Northern VA
Distribution: Slackware, Ubuntu, FreeBSD, OpenBSD, OS X
Posts: 782
Blog Entries: 8

Rep: Reputation: 158Reputation: 158
Quote:
Originally Posted by Joe of Loath View Post

Oh, and I can't SSH from school, as I can't ping my IP (read from the dyndns site, school blocks my DNS), and nmap tells me it's a switch. Which means I can't get through their firewall somewhere. I'm going to keep trying, try a few different techniques.
Can you telnet to it? Testing via ping is iffy since ICMP may be blocked:

telnet myhomeip 22*

* replace '22' with whatever port you're using for the SSH service

Nmap may also be blocked, especially if you're scanning against the SSH port, which is more than likely set to port 22.
 
Old 05-13-2010, 09:12 AM   #21
Joe of Loath
Member
 
Registered: Dec 2009
Location: Bristol, UK
Distribution: Ubuntu, Debian, Arch.
Posts: 152

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by unixfool View Post
Can you telnet to it? Testing via ping is iffy since ICMP may be blocked:

telnet myhomeip 22*

* replace '22' with whatever port you're using for the SSH service

Nmap may also be blocked, especially if you're scanning against the SSH port, which is more than likely set to port 22.
I would do that, except to enable external telnet on the router it wants me to give it an IP address? I have decided this router is a POS, and will try my hardest to kill it so we can upgrade to a nice DD-WRT one.

Quote:
Originally Posted by SuperJediWombat! View Post
It should be reserving the IP address using your servers MAC address. If it also wants a hostname, you can put anything in there it will not affect the port forwarding.
Try telling the router that... It gives it a different IP every time no matter what I try.
 
  


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
iceweasel -safe-mode not working, how to do internet after cold reset, in SQUEEZE ? frenchn00b Debian 19 10-27-2009 03:34 PM
Slacwkare 12.2 server exposed to the world TL_CLD Slackware 9 10-19-2009 08:27 AM
LXer: Are you safe? Internet security on Linux, don't fool yourself! LXer Syndicated Linux News 1 04-04-2009 05:21 AM
How do I know if my server is safe? SuperDude123 Linux - Security 4 01-05-2009 09:59 AM
Why my root directory exposed to win2003 server + IE7 UltraSoul Linux - Software 9 12-18-2006 07:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:57 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