1. Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

got a ubuntu 11.04 question

Discussion in 'Linux / BSD / Mac OS X' started by spy2520, May 23, 2011.

  1. spy2520 New Member

    Joined:
    Mar 8, 2006
    Messages:
    498 (0.16/day)
    Thanks Received:
    16
    i know this is probably a simple problem, but i am running a caching proxy on ubuntu server 11.04. I am using my phone via USB as a WAN interface, and the ubuntu server serves as a gateway to the rest of my network and serves dhcp.

    Two questions:

    1. It sometimes autosenses the phone, but almost every time i unplug the phone i have to reboot the machine with the phone plugged in for it to work again. Is there a way around this? I already have the phone (usb0) defined in interfaces with a static ip.

    2. Every time i boot, i have a routine of
    Code:
    sudo /etc/init.d/isc-dhcp-server start
    and
    Code:
    sudo shorewall start
    . I also have to edit /etc/resolv.conf every time because i guess somehow it is being overwritten by dhcp. Is there a way to add isc-dhcp-server and shorewall to the boot process? Is there a way to lock down resolv.conf or define name servers some other way that wont be overwritten on boot?


    The network works perfectly by the way, it just takes an extra 10 minutes to set everything back up when i get home from work.
  2. Easy Rhino

    Easy Rhino Linux Advocate

    Joined:
    Nov 13, 2006
    Messages:
    13,407 (4.72/day)
    Thanks Received:
    3,233
    as far as your boot process, you could write a basic script in cron and have it execute during the boot process saving you time. im not sure why you have to reboot though when you unplug your phone. if it is usb you should be able to restart that process in init.d manually.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guest)

Share This Page