LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can't SSH to local ubuntu server after putting it into DMZ mode (https://www.linuxquestions.org/questions/linux-newbie-8/cant-ssh-to-local-ubuntu-server-after-putting-it-into-dmz-mode-941619/)

weylin 04-25-2012 03:34 AM

Can't SSH to local ubuntu server after putting it into DMZ mode
 
So I put the ip of my server in DMZ mode because I am experimenting with hosting a website from home and now I cannot SSH into it.

acid_kewpie 04-25-2012 03:48 AM

ok, so... that's a bad thing..? you want help to make that not the case?

Might help to explain what you actually did... sounds like something a firewall widget would do... can you not walk up to the machine, login locally and change it back?

weylin 04-25-2012 03:53 AM

Its working now I guess i just needed to reset the network connection?, I ended up just rebooting the server, I tired ifconfig down , ifconfig up , but this didn't work, I also tried dhclient which didn't work either, what is the best way to ipconfig/release renew in ubuntu server?

Satyaveer Arya 04-25-2012 04:38 AM

Quote:

what is the best way to ipconfig/release renew in ubuntu server?
Sorry, I didn't get. Can you explain it?

acid_kewpie 04-25-2012 04:40 AM

well, you should never be renewing a lease on a server, as a server shouldn't be using DHCP...

weylin 04-25-2012 05:02 AM

Quote:

Originally Posted by Satyaveer Arya (Post 4662513)
Sorry, I didn't get. Can you explain it?

I don't understand what is so confusing. ipconfig/release , ipconfig/renew , how to do this on linux, as i mentioned i tried ifconfig eth1 down, ifconfig eth1 up, but this didn't work, i also tried using dhclient which didn't work either, as I already said. I ended up having to reboot the server completely which is what i was trying to avoid.

weylin 04-25-2012 05:03 AM

Quote:

Originally Posted by acid_kewpie (Post 4662515)
well, you should never be renewing a lease on a server, as a server shouldn't be using DHCP...

I want to host a simple website from home, but I do not want to pay for an expensive business account for a static ip. As i understand from my reading so far this should be possible to do. My WAN ip changes once in a blue moon, and my lan ip is always the same 192.168.1.whatever. So i really dont see the point in paying for a business account from my isp, i actually dont mind having to go in and change things if the ip changes.

acid_kewpie 04-25-2012 05:06 AM

you wouldn't use the tools directly, but use the wrapper services around them, as that's how the defined configuration files get into the question. I would personally just restart the network service - "sudo /etc/init.d/networking restart"

---------- Post added 25-04-12 at 11:07 AM ----------

Quote:

Originally Posted by weylin (Post 4662535)
as i said, i am experimenting with hosting a website from home for fun, so patronizing me about using dhcp isn't really answering my question or helping at all.

and accusing people helping you of being patronizing isn't a great idea.


All times are GMT -5. The time now is 12:43 AM.