Ubuntu Servers :: Trigger A Shell Script Upon DHCP Request?

May 13, 2011

Is there a way trigger a shell script after my DHCP server successfully gives out, either a specific IP address or to a specific MAC address.I have two Xbox360's in my house that both receive IP address via DHCP reservations from the Ubuntu server.I have come to accept that without having two public IP addresses getting both to have an open NAT will be very difficult. I have decided that I am OK with only one being able to have an Open NAT at a time, but I want to change the firewall rules according to which Xbox 360 turned on first. This way I can move between level in my house and play online without having to modify rules manually.

View 3 Replies


ADVERTISEMENT

Networking :: Host Not Responding To DHCP Request?

May 18, 2009

I am running a 2 NIC system with the routing table for eth0 allows user access to the internet,etc. and eth1 routes to another private network (192.168.x.x). eth1 is configured to handle DHCP requests.When a device connected via eth1 boots, it requests an IP from the DHCP server. Using tcpdump, eth1 is receiving the request but is not offering a lease.dhcp.conf seems to be configuring the DHCP service correctly. and dhcpd is running.The host is running Red Hat Enterprise Linux (Server Edition) 5.1. Perhaps I need to modify fire-wall rules (or disable them on eth1 altogether)?

View 2 Replies View Related

Networking :: Skip DHCP Request When Interface Is Down?

Apr 26, 2010

Google is full of users which cannot get a DHCP address So no matter what search term I use, I only see solutions which do not apply to this problem. I am running Debian Squeeze on a netbook eeePC 1001P I have a wireless interface and a wired interface defined in /etc/network/interfaces:

Code:

auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp

[code]....

Both interfaces WORK! When I have plugged in a cable, eth0 acquires and gets an IP, when I am in reach of the WiFi, wlan0 gets an IP address. Now when I want to use only wireless, and I have no LAN connected, this is what happens at boot:

Code:

ADDRCONF(NETDEV_UP): eth0: link is not ready
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5

[code]....

This is fine, however it takes forever (I think 60 seconds) before DHCP decides to time out. That is awkward. This is my wife's computer and I cannot tell her to intervene manually when she is either in Wifi range or on the LAN. Why is dhclient called when it is detected that eth0 is not ready? How can I disable acquiring a DHCP address on an interface which is not ready? when a link is not ready, acquiring a DHCP address is skipped. How can I configure that? I have looked thru the ifup scripts, but nothing. Where do I see what is happening when the interface is auto eth0?

View 3 Replies View Related

Networking :: Cable Modem - Losing Connection - Resolved By DHCP Request

Dec 12, 2010

Running 2.6.29-gentoo-r1 on a Sun Ultrasparc 10 with a Sun Happy Meal on eth0 connected directly to my cable modem. Intermittently, with a frequency between a few hours and a few days, I lose internet connectivity. Running ifconfig eth0 indicates all is well and I have a valid IP address but I cannot even ping the cable modem's management address; pings to 127.0.0.1 and eth0's IP address do get a reply but no other address I've tried does. I can 'fix' the problem by issuing

Code:

If I check the CM logs, it appears that it has rebooted itself prior to the loss of connectivity. The strange thing is that the incoming traffic doesn't seem to be affected by this, my PSAD log is full of incoming scans even during the periods when I can't connect to the net. I suspect this is an ISP problem (they own the CM);

View 2 Replies View Related

Ubuntu Servers :: DHCP Server And DHCP Client Simultaneously?

Aug 4, 2010

I have an embedded device for which I've created an html configuration page. This page allows you to set static IPs, dhcp, and can scan for wireless devices.My problem is that in order to access the device it requires that it runs as a dhcp server otherwise people are not assigned an IP and so can not access the embedded devices static IP. (This config page is for the laymen and so they are not the type who are able to set up their own static IPs). One of the potential options is to have the device connect to the network on eth0 acting as a dhcp client. However this prevents me from running a dhcp server.One solution I can think of is running a dhcp server only if it doesn't detect another dhcp server running on the network.

View 4 Replies View Related

Ubuntu Servers :: Udevadm Trigger Is Not Permitted While Udev Is Unconfigured

Aug 27, 2011

I'm having a bit of a nightmare with my ubuntu hardy server (using hardware raid 1+0). Following a power cut I get the message "udevadm trigger is not permitted while udev is unconfigured" on boot. Before the power cut the server had been up for ~450 days.

I managed to get access to /boot (which was empty) by using the repair option on the alternate cd and mounting /dev/myserver/root. I've installed the packages linux-headers-server, linux-image-server and linux-server. The various 2.6.24-29 files were installed and update-initramfs was automatically run (I noticed others have used update-initramfs to solve this error when upgrading from 8.04 to 10.04 in some posts I've read). No luck with this though - just the same error booting. I've also tried reinstalling udev, but again with no success.

I rebooted and pressed the Esc key to get the boot menu up. Only options were for kernel 2.6.24-26 (rather than the 2.6.24-29 just installed). I ran the recovery option anyway and got "/dev/mapper/myserver-root does not exist".

View 1 Replies View Related

General :: LAN Machines Sending Packets By Iftop - Set Only Send And Recieve Http - Smtp - Ssh - Dns - Dhcp Request?

Jun 10, 2011

I have proxy running. I have seen LAN machines sending packets by iftop -P -F 192.168.10./24

[Code]....

How do i set my iptables so that I can only send and recieve http,smtp,ssh,dns,dhcp request in and out of the proxy

[Code]...

View 3 Replies View Related

Ubuntu Servers :: DHCP And DHCP Client Simultaneously?

Oct 31, 2010

I have an embedded device for which I've created an html configuration page. This page allows you to set static IPs, dhcp, and can scan for wireless devices. My problem is that in order to access the device it requires that it runs as a dhcp server otherwise people are not assigned an IP and so can not access the embedded devices static IP. (This config page is for the laymen and so they are not the type who are able to set up their own static IPs). One of the potential options is to have the device connect to the network on eth0 acting as a dhcp client. However this prevents me from running a dhcp server. One solution I can think of is running a dhcp server only if it doesn't detect another dhcp server running on the network. However I have no idea how this could be setup.

View 2 Replies View Related

General :: Bash Shell Scripting Request?

Feb 27, 2011

I am working on a simple script that should take two command line arguments, a [number] and a [name]. The first thing the script should do is check to make sure that no more and no less than two command line arguments have been entered when calling the script - an error message should be delivered if the condition is not true.

If two args have been entered, then the message 'processing "scriptname"' should appear, where scriptname is the name of the script being called. The script should then write to the screen "Hi [name]!", and should write this phrase [number] of times. For example, the command $ myscript 2 joe would produce the output: I have read the manual many times looking for examples, and I am very close by virtue of my own efforts. Further, I have searched these forums and others for good examples, which have also gotten me very close. Still my script is not completing the objective, and I am wondering if someone could point me in the right direction. Script:

[Code]...

View 13 Replies View Related

Ubuntu Servers :: Windows DHCP Server - Multiple Boot Servers ?

Apr 1, 2011

I'm curious if anybody can shed some light for me in this department. We're in a large environment with a Windows DHCP Server. We have been tinkering with LTSP on Edubuntu as thin and fat clients. It works great, but right now we just have 1 server handling the lab, which works fine unless we want to expand, which may be very possible.

These are the instructions I received:
Login to your windows server and load the DHCP configuration screen
Create a DHCP reservation for the MAC address you obtained
Add the configuration options below to enable the machine to boot from the LTSP server
017 Root Path: /opt/ltsp/i386
066 Boot Server Host Name: <ip address>
067 Bootfile Name: ltsp/arch/pxelinux.0 # Specify CPU architecture in place of 'arch', for instance 'i386'

From: [url]

I'm curious, what if I want to have multiple Ubuntu servers on the network that I want to have bootable? For example, let's say I have 3 labs, and 3 servers. Server A to Lab A, Server B to Lab B, and Server C to Lab C. I want all C's computers to boot to C, and B to B, A to A, etc.

1 - How would I add multiple entries on the Windows DHCP Server to allow all 3 (A B C) servers to boot?

2 - How would I be able to isolate the clients so ONLY Lab A clients boot to Server A, etc?

View 7 Replies View Related

Ubuntu Servers :: (SDE) Sense Key - Illegal Request (Current)

Jan 3, 2011

I have an MD3000 storage attached to dell server via sas cables, running ubuntu server.
the kernel keeps throwing these messages every other second on the console, but the drives from MD are fully accessible.

Jan 3 12:04:24 node2 kernel: [71041.035822] sd 5:0:1:0: [sde] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Jan 3 12:04:24 node2 kernel: [71041.035828] sd 5:0:1:0: [sde] Sense Key : Illegal Request [current]
Jan 3 12:04:24 node2 kernel: [71041.035833] sd 5:0:1:0: [sde] <<vendor>> ASC=0x94 ASCQ=0x1ASC=0x94 ASCQ=0x1

View 1 Replies View Related

Ubuntu Servers :: PTY Allocation Request Failed On Channel 0?

Jul 25, 2011

I recently ran into the following problem when trying to ssh into my Ubuntu 11.04 server:

>> ssh user@site.com
PTY allocation request failed on channel 0

I don't know for sure, but I think this happened after one of the latest Ubuntu updates I installed. In case it's of relevance, I'm remoting in from Terminal (Mac OS X 10.7 - Lion). Edit: The problem seems to be with Lion..

[Code]...

View 1 Replies View Related

Fedora Servers :: Build A F12 Cluster To Run DHCP On Top Of Two Servers Using Pacemaker And Drbd?

Apr 28, 2010

I'm trying to build a Fedora 12 cluster to run DHCP on top of two servers using pacemaker and drbd. The pacemaker runs great but i'm having the hardest time getting DRBD installed.

My kernel version is 2.6.32.11-99.fc12.i686.PAE First i tried to [root@dhcp-primary drbd]#yum install drbd this doesn't give me everything because apparently the kernel module for DRBD must be built from source. so i unpacked drbd-8.3.6.tar.gz and tried :

[Code]...

I'm not very experienced in compiling from source i'd love to make an rpm for this but after scouring the web and trying different install methods, I am still at a loss.

View 2 Replies View Related

Ubuntu Servers :: Controlling Files Listed By Directory Request

May 5, 2011

I use Apache 2.0.55 (Ubuntu) as a document server for a business association. When the document files expire, I change the permissions so that only the owner can open them but I like to leave them on the server so that they are all in one place.

Here is my trouble--when visitors come to the site and get the directory listing, all the document files show up, whether the visitor can access them or not.

Is there some way to configure the server to not show the inaccessible files?

I guess a few technical details might help. During their useful lives, the files permissions are set to 644. Once they expire, I change them to 600. After the change, the files are still visible. Setting them to 000 doesn't help either.

It might be of note, but directories behave differently than files. If I set a directory to 600, it disappears from the listing.

View 2 Replies View Related

Ubuntu Servers :: Error - Misconfiguration And Was Unable To Complete Your Request

Sep 1, 2011

i've installed nagios just from a while and after i installed centreon, since this when i try to log in the web interface of nagios it shows up this message: Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request. contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Apache/2.2.17 (Ubuntu) Server at localhost Port 80

View 1 Replies View Related

Server :: Redirect All Client Http Request To Https Request In Squid?

Jun 25, 2010

how to redirect all client http request to https request in squid

View 1 Replies View Related

Debian Configuration :: Network - Access Servers Request Failed

Feb 1, 2010

I recently installed two PC with debian lenny (kernel 2.6.26). One is called serveur-debian1 and the second one serveur-debian2. I have installed gnome,samba, mysql5, apache2, php5, and Virtualbox,bridge-tools on them. On serveur-debian2, i installed an other virtual debian lenny with apache2,mysql5,php5,nagios and centreon on it to view my network. I remember having installed a soft to access nntp on serveur-debian2 in order to test nagios.

Since a few days, i have problem to access to my servers. rom my windows 7 client, i try to ping serveur-debian1. Response is OK but not for all resquets Always from the same computer, i try to ping serveur-debian2. Response is OK but not for all again.

When i launch a ping on serveur-debian1 and serveur debian2 at the same time i have:

ping 1 to 10: serveur-debian1: response OK
serveur-debian2: no response
ping 11to 14: serveur-debian1: no response
serveur-debian2: response OK
ping 15 to 25: serveur-debian1: respone OK
serveur-debian2: @ip serveur-debian1 network unreachable (there's no error, it shows me the ip of serveur-debian1)

If i switch on the debian virtual server on the serveur-debian2, and i ping it at the same time, the response is OK for all resquests. The problem is very strange. I can't have a correct connection and when i launch a request from a software which access the mysql server, the requests failed ...

View 4 Replies View Related

Fedora Servers :: BUG: Unable To Handle Kernel Paging Request At [xxxx]?

Nov 10, 2009

[Note: I'm typing this entire thing out. It probably isn't 100% verbatim. And I am using an older version of the kernel because 2.6.30.9.96 was not behaving either.]

Code:
BUG: unable to handle kernel paging request at efd86f5c
*pde = 00000000

[code]....

View 2 Replies View Related

Ubuntu Servers :: Logwatch On 10.04 Dhcp?

Jun 16, 2010

i was wondering if there is anybody out there who has logwatch running and configured to just grab dhcp leases only

View 3 Replies View Related

Ubuntu Servers :: Unable To Get IP From The Dhcp?

May 1, 2011

I am setting up dhcp server for my public library and need to divide clients into a number of pools on the same network. The different ranges will be for different filtering requirements via squid/dansguard proxy. I have inhouse clients: staff, adult patron, and child patron, that have different filtering requirements and wireless guests that I want to shorter lease times to handle the rapid turnover rate. Trying to understand the terse manual, you assign pools via allow/deny members of classes, but classes are assigned by matching on mac address or vendor ids. Unfortunately as a poor rural library we have a hodge-podge of hardware with no matchable pattern. So I can solve the inhouse clients by using fixed-address, and remove them from the dynamic pool. Now the dhcp server would be serving only the short term wireless guests from the pool.

A common problem at libraries, you always get a few that are compelled to misbehave and break the libraries TOS. In the past the librarians would kick the offenders out of the library only to have them link in from the step or parking lot. Since I have their mac address in their initial lease I would like to prevent them from reestablishing a connection when they are banned.

My thinking is this; the library's computers are static and not part of the pool, the wireless clients would be unknown-clients, so set the pool to allow only unknown-clients, and for the "bad-boys" add their hosts in a group directive would make them "known" and therefore unable to get a IP from the dhcp server.

group {
host banned1 { hardware ethernet 00:00:00:00:00:01; }
host banned2 { hardware ethernet 00:00:00:95:a6:c1; }
host banned3 { hardware ethernet 0c:f1:b6:fe:00:01; }
}

[Code]....

View 3 Replies View Related

Ubuntu Servers :: Setting Up DHCP After Install

Feb 15, 2010

Due to me not remembering how my father set up the DHCP in my FreeBSD server (Files etc) i could not input the corrent info while i was installed Ubuntu 8.04 (LTS) server edition (32 bit). Could anyone be nice enough to tell me what i need to do, or what files to edit so i can access the internet from it?

View 9 Replies View Related

Ubuntu Servers :: Dnsmasq DHCP Nor DNS Working?

Jun 11, 2010

I have been rtying for a couple of days now to set up a local dns/dhcp server with dnsmasq on a ubunut server 10.04 I followed the basic instructions from several websites, starting with the ubuntu community one, didnt work, then tried some other, and nothing.

In the server the dns works, i test with dig example.com and i can see the time difference, so dns is working. so the problem is not making the dns work but to make the server listen for dns and dhcp resquests and respond to them.

I have desactivated the dhcp from the router so thats not the problem. making a windows box ping the server works, so the network is configured correctly.

dnsmaq is listed as "LISTEN" on netstat, i read in some blog that it should be using ports 67 and 68 but those are no listed, neither i configured them in any moments, none of the instructions i followed mentioned sth about that. i even tried configuring the window box with the ips and dns accordingly and that wouldnt work either.

so in conclusin i have dnsmasq that does have dns set up but wont answer to any requests of either DNS nor DHCP.

View 1 Replies View Related

Ubuntu Servers :: DHCP And Static IP's Dual NIC's?

Aug 28, 2010

I'm have a number of ubuntu servers that all have dual nics.One interface is used to assign a static public ip and the other is used to assign a static internal IP that can be used on the internal network.The interfaces pull IP's from completely separate gateways on different networks.The problem I face now it that our internal network is moving everything to DHCP on the internal side.I can configure my /etc/network/interfaces so that I can get a public static Ip and a private DCHP, but the problem is that the public IP no longer functions for any services.here is an example of my interfaces

Code:
# The primary network interface
auto eth0

[code]....

View 9 Replies View Related

Ubuntu Servers :: Install On A Non-DHCP Network?

Feb 8, 2011

I'm trying to install Ubuntu server on an older 05-06 Desktop (IBM) and when I get to the Configuration part it stops right around 95% and the prompt reads that configuration failed do to the fact that my unit is running a non DHCP Network or my machine is two slow. Now it does only have 1 gig in it right now so I'm thinking that might be the problem also. But if it is a DHCP issue how can I install UBUNTU or is it even possible?

View 9 Replies View Related

Ubuntu Servers :: How To Setup A Dhcp Server

May 30, 2011

Ive tried on multiple occasions to setup a dhcp server, but all the google searches return legitimate results it seems, and ill set everything up, except the last few instructions i have to configure /etc/dhcp3/dhcpd.conf and /etc/default/dhcp3-server, but ubuntu says its not there.Im running Ubuntu Server 11.04 and using nano to edit files

View 4 Replies View Related

Ubuntu Servers :: DHCP Not Pushing Internal DNS Unless Static

Jan 13, 2010

I operate Server v.8.04 with Bind9 configured for my internal sites. I installed DHCP3 the other day and assigned static addresses for certain boxes on my network. However, only those static assigned boxes can view my websites internally. In other words, DHCP appears to block my DNS. Is there a setting that I missed or is there something else?

View 5 Replies View Related

Ubuntu Servers :: DHCP General - Connect To The Internet

Jan 22, 2010

I'm going to load ubuntu server to a computer just for testing and learning. There is one ethernet card on this computer that will only be used occasionally to connect to the internet. This computer will not have any computers or routers connected to it. So my question is, once installed and running, will DHCP just sit quietly and wait for a request or is it going to complain a lot that it is not finding any other computers?

View 4 Replies View Related

Ubuntu Servers :: Dhcp Lan Clients Have No Internet Access?

Apr 20, 2010

alright so i set up dhcp server and my clients are getting ip's, can ping each other, and can ping/ssh the server. but nowhere beyond that.

however if i ping an externel site, i get its IP addr, but no pings (100% loss)

im ripping my hair out over this. i know that iptables is right, but i dont know about dns

idk if this helps:

Code:
pavel@ubuntu-server:~$ cat /etc/network/interfaces
auto lo br0 eth0 eth1
iface lo inet loopback
#mapping hotplug

[Code].....

View 9 Replies View Related

Ubuntu Servers :: DHCP Clients Can't Get Internet Access / Have That?

Jun 21, 2010

I must be very thick as i cannot seem to get my dhcp clients to connect to the Internet properly.
on my lucid server i installed dhcp3 server and bind9, i can ping and dig all on the local network. on the clients however, as soon as i go out of the local network there's messages like "unknown host www.google.com" or "network is unreachable".

View 9 Replies View Related

Ubuntu Servers :: Openvn On A Getaway / Dhcp Server

Sep 29, 2010

i have a lucid server box running a dhcp server and webmin.i want to bridge openvpn to the network that the dhcp server serves.all the configurations ive seen, id essentially have to install openvpn onto a computer underneath the dhcp server to accomplish this.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved