• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Keep loosing WAN IP Address - dhclient does not seem to do update

DHCP and DNS
27
199
112.3k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B
    Blinkiz
    last edited by Dec 15, 2006, 1:45 PM

    Okay, I can confirm that the new snapshot is not working in this issue.
    I have a problem with my ISP that my IP is dropped 5-10 times a day. I don't believe at the moment it is because of pfsense.

    Anyway, this makes me a great candidate for testing if pfsense is renewing my ip address when it detects it's down. I can say it dosen't. If I press the "renew" button manually, I get the interface up.
    My WAN interface is dc0
    My LAN interface is xl0

    
    Dec 15 08:36:23 	check_reload_status: updating dyndns
    Dec 15 08:36:22 	dnsmasq[7736]: using nameserver 217.75.96.11#53
    Dec 15 08:36:22 	dnsmasq[7736]: using nameserver 217.75.96.12#53
    Dec 15 08:36:22 	dnsmasq[7736]: reading /etc/resolv.conf
    Dec 15 08:36:22 	check_reload_status: reloading filter
    Dec 15 08:36:22 	miniupnpd[16371]: received signal 15, exiting
    Dec 15 08:36:19 	php: : Resyncing configuration for all packages.
    Dec 15 08:36:18 	php: : Creating rrd update script
    Dec 15 08:36:18 	php: : Informational: DHClient spawned /etc/rc.newwanip and the new ip is wan - 0.0.0.0.
    Dec 15 08:36:14 	dhclient[57046]: bound to 89.233.199.181 -- renewal in 1800 seconds.
    Dec 15 08:36:14 	dhclient: /sbin/route add default 89.233.199.1
    Dec 15 08:36:14 	dhclient: New Routers (dc0): 89.233.199.1
    Dec 15 08:36:14 	dhclient: New Broadcast Address (dc0): 89.233.199.255
    Dec 15 08:36:14 	dhclient: New Subnet Mask (dc0): 255.255.255.0
    Dec 15 08:36:14 	dhclient: New IP Address (dc0): 89.233.199.181
    Dec 15 08:36:13 	dhclient[57046]: DHCPACK from 89.233.199.1
    Dec 15 08:36:13 	dhclient[57046]: DHCPREQUEST on dc0 to 255.255.255.255 port 67
    Dec 15 08:36:13 	sshlockout[57101]: sshlockout starting up
    Dec 15 08:36:13 	sshlockout[57101]: sshlockout starting up
    Dec 15 08:36:13 	login: login on ttyv0 as root
    Dec 15 08:36:13 	php: : Informational: rc.newwanip is starting.
    Dec 15 08:36:12 	check_reload_status: rc.newwanip starting
    Dec 15 08:36:11 	dhclient[57046]: DHCPOFFER from 89.233.199.1
    Dec 15 08:36:10 	dhclient[57046]: DHCPDISCOVER on dc0 to 255.255.255.255 port 67 interval 7
    Dec 15 01:50:56 	php: : Hotplug event detected for xl0 but ignoring since interface is not set for DHCP
    Dec 15 01:50:55 	check_reload_status: rc.linkup starting
    Dec 15 01:50:51 	kernel: xl0: link state changed to UP
    Dec 15 01:50:50 	php: : Hotplug event detected for xl0 but ignoring since interface is not set for DHCP
    Dec 15 01:50:49 	check_reload_status: rc.linkup starting
    Dec 15 01:50:49 	kernel: xl0: link state changed to DOWN
    Dec 15 01:50:49 	kernel: xl0: watchdog timeout
    Dec 15 01:15:21 	php: : Hotplug event detected for xl0 but ignoring since interface is not set for DHCP
    Dec 15 01:15:21 	php: : Hotplug event detected for xl0 but ignoring since interface is not set for DHCP
    Dec 15 01:15:21 	check_reload_status: rc.linkup starting
    Dec 15 01:15:18 	kernel: xl0: link state changed to UP
    Dec 15 01:15:16 	kernel: xl0: link state changed to DOWN
    Dec 15 01:15:16 	kernel: xl0: watchdog timeout
    Dec 15 00:36:07 	dnsmasq[7736]: using nameserver 217.75.96.11#53
    Dec 15 00:36:07 	dnsmasq[7736]: using nameserver 217.75.96.12#53
    Dec 15 00:36:07 	dnsmasq[7736]: reading /etc/resolv.conf
    Dec 15 00:35:42 	check_reload_status: updating dyndns
    Dec 15 00:35:40 	miniupnpd[13408]: received signal 15, exiting
    Dec 15 00:35:40 	check_reload_status: reloading filter
    Dec 15 00:35:38 	php: : Resyncing configuration for all packages.
    Dec 15 00:35:36 	php: : Creating rrd update script
    Dec 15 00:35:36 	php: : Informational: DHClient spawned /etc/rc.newwanip and the new ip is wan - 89.233.202.100.
    Dec 15 00:35:32 	php: : Informational: rc.newwanip is starting.
    Dec 15 00:35:31 	check_reload_status: rc.newwanip starting
    Dec 15 00:10:34 	dnsmasq[7736]: using nameserver 217.75.96.11#53
    Dec 15 00:10:34 	dnsmasq[7736]: using nameserver 217.75.96.12#53
    Dec 15 00:10:34 	dnsmasq[7736]: reading /etc/resolv.conf
    Dec 15 00:05:43 	check_reload_status: updating dyndns
    Dec 15 00:05:41 	check_reload_status: reloading filter
    Dec 15 00:05:41 	miniupnpd[10415]: received signal 15, exiting
    Dec 15 00:05:39 	php: : Resyncing configuration for all packages.
    Dec 15 00:05:38 	php: : Creating rrd update script
    Dec 15 00:05:38 	php: : Informational: DHClient spawned /etc/rc.newwanip and the new ip is wan - 89.233.202.100.
    Dec 15 00:05:36 	kernel: pflog0: promiscuous mode disabled
    Dec 15 00:05:33 	php: : Informational: rc.newwanip is starting.
    Dec 15 00:05:33 	check_reload_status: rc.newwanip starting
    Dec 14 23:47:15 	dnsmasq[7736]: using nameserver 217.75.96.11#53
    Dec 14 23:47:15 	dnsmasq[7736]: using nameserver 217.75.96.12#53
    Dec 14 23:47:15 	dnsmasq[7736]: reading /etc/resolv.conf
    Dec 14 23:35:44 	check_reload_status: updating dyndns
    Dec 14 23:35:43 	check_reload_status: reloading filter
    Dec 14 23:35:42 	miniupnpd[10275]: received signal 15, exiting
    Dec 14 23:35:40 	php: : Resyncing configuration for all packages.
    Dec 14 23:35:39 	php: : Creating rrd update script
    Dec 14 23:35:39 	php: : Informational: DHClient spawned /etc/rc.newwanip and the new ip is wan - 89.233.202.100.
    Dec 14 23:35:38 	miniupnpd[6728]: received signal 15, exiting
    Dec 14 23:35:36 	php: : Resyncing configuration for all packages.
    Dec 14 23:35:36 	php: : Creating rrd update script
    Dec 14 23:35:35 	php: : Informational: DHClient spawned /etc/rc.newwanip and the new ip is wan - 89.233.202.100.
    Dec 14 23:35:35 	php: : Informational: rc.newwanip is starting.
    Dec 14 23:35:34 	check_reload_status: rc.newwanip starting
    Dec 14 23:35:34 	check_reload_status: check_reload_status is starting
    Dec 14 23:35:31 	php: : Informational: rc.newwanip is starting.
    Dec 14 22:35:30 	check_reload_status: rc.newwanip starting
    Dec 14 23:16:00 	syslogd: kernel boot file is /boot/kernel/kernel
    Dec 14 23:16:00 	syslogd: exiting on signal 15
    Dec 14 23:12:59 	dhcpd: For info, please visit http://www.isc.org/sw/dhcp/
    Dec 14 23:12:59 	dhcpd: All rights reserved.
    Dec 14 23:12:59 	dhcpd: Copyright 2004-2006 Internet Systems Consortium.
    Dec 14 23:12:59 	dhcpd: Internet Systems Consortium DHCP Server V3.0.4
    Dec 14 23:12:58 	dnsmasq[7736]: using nameserver 217.75.96.11#53
    Dec 14 23:12:58 	dnsmasq[7736]: using nameserver 217.75.96.12#53
    Dec 14 23:12:58 	dnsmasq[7736]: reading /etc/resolv.conf
    Dec 14 23:12:58 	dnsmasq[7736]: read /etc/hosts - 4 addresses
    Dec 14 23:12:58 	dnsmasq[7736]: started, version 2.22 cachesize 150
    Dec 14 23:12:57 	dnsmasq[4470]: exiting on receipt of SIGTERM
    Dec 14 23:12:57 	dnsmasq[4470]: using nameserver 217.75.96.11#53
    Dec 14 23:12:57 	dnsmasq[4470]: using nameserver 217.75.96.12#53
    Dec 14 23:12:57 	dnsmasq[4470]: reading /etc/resolv.conf
    Dec 14 23:12:57 	dhcpd: For info, please visit http://www.isc.org/sw/dhcp/
    Dec 14 23:12:57 	dhcpd: All rights reserved.
    Dec 14 23:12:57 	dhcpd: Copyright 2004-2006 Internet Systems Consortium.
    Dec 14 23:12:57 	dhcpd: Internet Systems Consortium DHCP Server V3.0.4
    Dec 14 23:09:40 	dnsmasq[4470]: using nameserver 217.75.96.11#53
    Dec 14 23:09:40 	dnsmasq[4470]: using nameserver 217.75.96.12#53
    Dec 14 23:09:40 	dnsmasq[4470]: reading /etc/resolv.conf
    Dec 14 22:09:08 	php: /pkg_mgr_install.php: Beginning package installation for stunnel.
    Dec 14 22:05:41 	check_reload_status: updating dyndns
    Dec 14 22:05:40 	check_reload_status: reloading filter
    Dec 14 23:05:40 	miniupnpd[1731]: received signal 15, exiting
    Dec 14 23:05:38 	php: : Resyncing configuration for all packages.
    Dec 14 23:05:37 	php: : Creating rrd update script
    Dec 14 23:05:37 	php: : Informational: DHClient spawned /etc/rc.newwanip and the new ip is wan - 89.233.202.100.
    Dec 14 23:05:33 	php: : Informational: rc.newwanip is starting.
    Dec 14 22:05:32 	check_reload_status: rc.newwanip starting
    Dec 14 22:03:04 	check_reload_status: reloading filter
    Dec 14 23:01:10 	sshd[5595]: subsystem request for sftp
    Dec 14 22:59:00 	sshd[5595]: Accepted password for admin from 192.168.1.199 port 1683 ssh2
    Dec 14 22:58:55 	sshd[5595]: Failed password for admin from 192.168.1.199 port 1683 ssh2
    Dec 14 21:57:53 	check_reload_status: reloading filter
    Dec 14 21:53:41 	check_reload_status: reloading filter
    Dec 14 22:53:36 	sshd[4601]: Server listening on 0.0.0.0 port 222.
    Dec 14 22:53:36 	sshlockout[4602]: sshlockout starting up
    Dec 14 22:53:36 	sshlockout[4602]: sshlockout starting up
    Dec 14 22:53:36 	sshd[4601]: Server listening on :: port 222.
    Dec 14 22:53:35 	php: : New alert found: pfSense has completed creating your SSH keys. SSH is now started.
    Dec 14 22:53:23 	php: : New alert found: pfSense has started creating your SSH keys. SSH Startup will be delayed. Please note that reloading the filter rules and changes will be delayed until this operation is completed.
    Dec 14 21:53:23 	check_reload_status: starting sshd
    Dec 14 22:53:21 	dhcpd: For info, please visit http://www.isc.org/sw/dhcp/
    Dec 14 22:53:21 	dhcpd: All rights reserved.
    Dec 14 22:53:21 	dhcpd: Copyright 2004-2006 Internet Systems Consortium.
    Dec 14 22:53:21 	dhcpd: Internet Systems Consortium DHCP Server V3.0.4
    Dec 14 22:53:20 	dnsmasq[4470]: using nameserver 217.75.96.11#53
    Dec 14 22:53:20 	dnsmasq[4470]: using nameserver 217.75.96.12#53
    Dec 14 22:53:20 	dnsmasq[4470]: reading /etc/resolv.conf
    Dec 14 22:53:20 	dnsmasq[4470]: read /etc/hosts - 4 addresses
    Dec 14 22:53:20 	dnsmasq[4470]: started, version 2.22 cachesize 150
    Dec 14 21:53:19 	dnsmasq[1378]: exiting on receipt of SIGTERM
    Dec 14 22:53:19 	dhcpd: For info, please visit http://www.isc.org/sw/dhcp/
    Dec 14 22:53:19 	dhcpd: All rights reserved.
    Dec 14 22:53:19 	dhcpd: Copyright 2004-2006 Internet Systems Consortium.
    Dec 14 22:53:19 	dhcpd: Internet Systems Consortium DHCP Server V3.0.4
    Dec 14 21:53:16 	check_reload_status: reloading filter
    Dec 14 22:44:27 	syslogd: kernel boot file is /boot/kernel/kernel
    Dec 14 21:44:27 	syslogd: exiting on signal 15
    Dec 14 21:42:06 	kernel: dc0: TX underrun -- increasing TX threshold
    Dec 14 21:41:54 	kernel: dc0: TX underrun -- increasing TX threshold
    Dec 14 21:39:41 	php: miniupnpd: Starting service
    Dec 14 21:39:40 	php: miniupnpd: Active on lan interface
    Dec 14 21:39:40 	php: miniupnpd: Syncing package
    Dec 14 21:37:52 	dhcpd: For info, please visit http://www.isc.org/sw/dhcp/
    Dec 14 21:37:52 	dhcpd: All rights reserved.
    Dec 14 21:37:52 	dhcpd: Copyright 2004-2006 Internet Systems Consortium.
    Dec 14 21:37:52 	dhcpd: Internet Systems Consortium DHCP Server V3.0.4
    Dec 14 21:37:51 	dnsmasq[1378]: using nameserver 217.75.96.11#53
    Dec 14 21:37:51 	dnsmasq[1378]: using nameserver 217.75.96.12#53
    Dec 14 21:37:51 	dnsmasq[1378]: reading /etc/resolv.conf
    Dec 14 21:37:51 	dnsmasq[1378]: read /etc/hosts - 4 addresses
    Dec 14 21:37:50 	dnsmasq[1378]: started, version 2.22 cachesize 150
    Dec 14 21:37:49 	dnsmasq[1108]: exiting on receipt of SIGTERM
    Dec 14 21:37:49 	dnsmasq[1108]: using nameserver 217.75.96.11#53
    Dec 14 21:37:49 	dnsmasq[1108]: using nameserver 217.75.96.12#53
    Dec 14 21:37:49 	dnsmasq[1108]: reading /etc/resolv.conf
    Dec 14 21:37:49 	dhcpd: For info, please visit http://www.isc.org/sw/dhcp/
    Dec 14 21:37:49 	dhcpd: All rights reserved.
    Dec 14 21:37:49 	dhcpd: Copyright 2004-2006 Internet Systems Consortium.
    Dec 14 21:37:49 	dhcpd: Internet Systems Consortium DHCP Server V3.0.4
    Dec 14 21:37:04 	dhcpd: For info, please visit http://www.isc.org/sw/dhcp/
    Dec 14 21:37:04 	dhcpd: All rights reserved.
    Dec 14 21:37:04 	dhcpd: Copyright 2004-2006 Internet Systems Consortium.
    Dec 14 21:37:04 	dhcpd: Internet Systems Consortium DHCP Server V3.0.4
    Dec 14 21:37:03 	dnsmasq[1108]: using nameserver 217.75.96.11#53
    Dec 14 21:37:03 	dnsmasq[1108]: using nameserver 217.75.96.12#53
    Dec 14 21:37:03 	dnsmasq[1108]: reading /etc/resolv.conf
    Dec 14 21:37:03 	dnsmasq[1108]: read /etc/hosts - 4 addresses
    Dec 14 21:37:03 	dnsmasq[1108]: started, version 2.22 cachesize 150
    Dec 14 21:37:02 	dnsmasq[386]: exiting on receipt of SIGTERM
    Dec 14 21:37:02 	dnsmasq[386]: using nameserver 217.75.96.11#53
    Dec 14 21:37:02 	dnsmasq[386]: using nameserver 217.75.96.12#53
    Dec 14 21:37:02 	dnsmasq[386]: reading /etc/resolv.conf
    Dec 14 21:37:02 	dhcpd: For info, please visit http://www.isc.org/sw/dhcp/
    Dec 14 21:37:02 	dhcpd: All rights reserved.
    Dec 14 21:37:02 	dhcpd: Copyright 2004-2006 Internet Systems Consortium.
    Dec 14 21:37:02 	dhcpd: Internet Systems Consortium DHCP Server V3.0.4
    Dec 14 21:35:49 	dnsmasq[386]: using nameserver 217.75.96.11#53
    Dec 14 21:35:49 	dnsmasq[386]: using nameserver 217.75.96.12#53
    Dec 14 21:35:49 	dnsmasq[386]: reading /etc/resolv.conf
    Dec 14 21:35:43 	check_reload_status: updating dyndns
    Dec 14 21:35:41 	check_reload_status: reloading filter
    Dec 14 21:35:41 	php: : Resyncing configuration for all packages.
    Dec 14 21:35:40 	php: : Creating rrd update script
    Dec 14 21:35:40 	php: : Informational: DHClient spawned /etc/rc.newwanip and the new ip is wan - 89.233.202.100.
    Dec 14 21:35:39 	sshlockout[664]: sshlockout starting up
    Dec 14 21:35:39 	sshlockout[664]: sshlockout starting up
    Dec 14 21:35:39 	login: login on ttyv0 as root
    Dec 14 21:35:38 	php: : Informational: rc.newwanip is starting.
    Dec 14 21:35:37 	check_reload_status: rc.newwanip starting
    Dec 14 21:35:37 	check_reload_status: check_reload_status is starting
    Dec 14 21:35:37 	php: : Resyncing configuration for all packages.
    Dec 14 21:35:33 	dhcpd: For info, please visit http://www.isc.org/sw/dhcp/
    Dec 14 21:35:33 	dhcpd: All rights reserved.
    Dec 14 21:35:33 	dhcpd: Copyright 2004-2006 Internet Systems Consortium.
    Dec 14 21:35:33 	dhcpd: Internet Systems Consortium DHCP Server V3.0.4
    Dec 14 21:35:33 	php: : Creating rrd update script
    Dec 14 21:35:32 	pftpx[457]: listening on 127.0.0.1 port 8021
    Dec 14 21:35:32 	pftpx[457]: listening on 127.0.0.1 port 8021
    
    
    1 Reply Last reply Reply Quote 0
    • S
      Selective
      last edited by Dec 15, 2006, 3:59 PM

      i have the same problem, and i have done this (no warranty!):

      edit /etc/rc.newwanip
      and in the beginning of the file i added:

      if($curwanip == "0.0.0.0") {
              log_error("Failed to update WAN IP, restarting dhclient.");
              exec("dhclient rl0");
      }
      –----------------------------------------------------------------------------------
      Replace "rl0" with you WAN interface!
      It would look like this:

      /* WAN IP address has changed */

      $argument = str_replace("\n", "", $argv[1]);

      if($argument <> "") {
      $curwanip = find_interface_ip($argument);
      $interface = convert_real_interface_to_friendly_interface_name($argument);
      if($curwanip == "")
              $curwanip = get_current_wan_address();
      } else {
          $curwanip = get_current_wan_address();
          $interface = "wan";
      }
      if($curwanip == "0.0.0.0") {
              log_error("Failed to update WAN IP, restarting dhclient.");
              exec("dhclient rl0");
      }

      1 Reply Last reply Reply Quote 0
      • S
        Selective
        last edited by Dec 15, 2006, 4:17 PM

        have done some research, and it seems that the problem is dhclient and not pfsense, this guy is not using pfsense:

        http://lists.freebsd.org/pipermail/freebsd-current/2005-October/056279.html

        1 Reply Last reply Reply Quote 0
        • S
          sullrich
          last edited by Dec 15, 2006, 6:18 PM

          That was from 2005.  Since then dhclient was replaced with a version from OpenBSD.

          1 Reply Last reply Reply Quote 0
          • S
            Selective
            last edited by Dec 15, 2006, 6:36 PM

            well,, the error is the same:
            "short write: wanted 21 got 0 bytes"

            1 Reply Last reply Reply Quote 0
            • S
              sullrich
              last edited by Dec 15, 2006, 7:11 PM

              @Selective:

              well,, the error is the same:
              "short write: wanted 21 got 0 bytes"

              Yeah, that's very strange.  Just to make sure, you are on the latest testing snapshot?

              1 Reply Last reply Reply Quote 0
              • D
                d13f00l
                last edited by Dec 16, 2006, 12:39 AM

                @Selective:

                i have the same problem, and i have done this (no warranty!):

                edit /etc/rc.newwanip
                and in the beginning of the file i added:

                if($curwanip == "0.0.0.0") {
                        log_error("Failed to update WAN IP, restarting dhclient.");
                        exec("dhclient rl0");
                }
                –----------------------------------------------------------------------------------
                Replace "rl0" with you WAN interface!
                It would look like this:

                /* WAN IP address has changed */

                $argument = str_replace("\n", "", $argv[1]);

                if($argument <> "") {
                $curwanip = find_interface_ip($argument);
                $interface = convert_real_interface_to_friendly_interface_name($argument);
                if($curwanip == "")
                        $curwanip = get_current_wan_address();
                } else {
                    $curwanip = get_current_wan_address();
                    $interface = "wan";
                }
                if($curwanip == "0.0.0.0") {
                        log_error("Failed to update WAN IP, restarting dhclient.");
                        exec("dhclient rl0");
                }

                THANKS SO MUCH!

                This works like a charm.  My ISP drops my IP from time to time, it was annoying because pfsense doesn't auto-renew it for whatever reason.  I'm running in vmware.  It works fine now!  I can see it in the system logs as it happens.

                1 Reply Last reply Reply Quote 0
                • S
                  Selective
                  last edited by Dec 16, 2006, 10:09 AM

                  Nice to hear it worked !! :D

                  1 Reply Last reply Reply Quote 0
                  • S
                    Selective
                    last edited by Dec 16, 2006, 10:13 AM

                    @sullrich:

                    @Selective:

                    well,, the error is the same:
                    "short write: wanted 21 got 0 bytes"

                    Yeah, that's very strange.  Just to make sure, you are on the latest testing snapshot?

                    Yes, im using 2006-12-14 right now, maybe its time to upgrade dhclient to 3.0.5 if its possibly ?? or even replace dhclient.

                    1 Reply Last reply Reply Quote 0
                    • F
                      fireseller
                      last edited by Dec 16, 2006, 10:59 AM

                      yeah, definately looks like the same error. What drives me crazy is that the versions before 1.0 of Pfsense worked flawlessly concerning the dhclient Wan IP issue. Was there a version change?

                      Cheers
                      fireseller

                      1 Reply Last reply Reply Quote 0
                      • S
                        sullrich
                        last edited by Dec 16, 2006, 4:03 PM

                        Everyone having problems please replace /etc/rc.newwanip with http://pfsense.com/cgi-bin/cvsweb.cgi/pfSense/etc/rc.newwanip?rev=1.21.2.23;content-type=text%2Fplain;only_with_tag=RELENG_1

                        Let me know.. Thanks!

                        1 Reply Last reply Reply Quote 0
                        • B
                          Blinkiz
                          last edited by Dec 17, 2006, 9:49 AM Dec 17, 2006, 9:33 AM

                          Sorry to say, but I have tested another firewall and all my problems disappeared.
                          The thing about my ISP is changing my IP a lot.. Yea, it disappeared. Clearly it was pfsense. On the new firewall I have had the same WAN IP since the installation ~2 days ago.

                          The weird part about this is that pfsense has been working before without problem. All problems started when I changed my ISP. So.. again, not expert, but I believe ISP have different ways to give IP's and pfsense can't handle them all in a correct manner.
                          On the new firewall I can see in the logs that it comes false dhcp offers from time to time on the WAN. The new firewall just drops this. Maybe pfsense doesn't? Anyway, I have no clue…

                          1 Reply Last reply Reply Quote 0
                          • S
                            Selective
                            last edited by Dec 17, 2006, 3:52 PM Dec 17, 2006, 3:47 PM

                            @sullrich:

                            Everyone having problems please replace /etc/rc.newwanip with http://pfsense.com/cgi-bin/cvsweb.cgi/pfSense/etc/rc.newwanip?rev=1.21.2.23;content-type=text%2Fplain;only_with_tag=RELENG_1

                            Let me know.. Thanks!

                            it looks like it could work, BUT ! i got this:

                            Dec 17 15:25:11 dhclient[11983]: exiting.
                            Dec 17 15:25:11 dhclient[11983]: exiting.
                            Dec 17 15:25:11 dhclient[11983]: connection closed
                            Dec 17 15:25:11 dhclient[11983]: connection closed
                            Dec 17 15:25:11 dhclient[11982]: exiting.
                            Dec 17 15:25:11 dhclient[11982]: exiting.
                            Dec 17 15:25:11 dhclient[11982]: wan: not found
                            Dec 17 15:25:11 dhclient[11982]: wan: not found
                            Dec 17 15:25:11 php: : Failed to update WAN IP, restarting dhclient.
                            Dec 17 15:25:11 php: : Informational: rc.newwanip is starting.

                            it seems like the script is using "wan" as a real interface name.
                            maybe it should be like this ? :
                            exec("dhclient {$argument}");

                            1 Reply Last reply Reply Quote 0
                            • N
                              Nextrem
                              last edited by Dec 17, 2006, 4:45 PM

                              I don't know if this new script fixes the Loose IP Problem. But after replacing the old version with the new one I had problems with my OpenVPN. Always the script tried to re synced the OpenVPN, I received a error:

                              Port [undef] 1194 already bound

                              I use the pfSense-1.0.1-Embedded.img.gz with just changing the /etc/rc.newwanip to the proposed version.

                              1 Reply Last reply Reply Quote 0
                              • S
                                sullrich
                                last edited by Dec 17, 2006, 5:53 PM

                                Nextrem: not related, known issue, please see the openvpn threads.

                                Everyone else:

                                I have updated rc.newwanip, try this version:

                                http://pfsense.com/cgi-bin/cvsweb.cgi/pfSense/etc/rc.newwanip?rev=1.21.2.24;content-type=text%2Fplain;only_with_tag=RELENG_1

                                1 Reply Last reply Reply Quote 0
                                • F
                                  fireseller
                                  last edited by Dec 18, 2006, 11:07 AM

                                  Thx sullrich

                                  Just replaced and rebooted. Let's hope the best ;)

                                  Cheers
                                  fireseller

                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    Selective
                                    last edited by Dec 18, 2006, 5:20 PM

                                    i think i can confirm that the new script is working !! ;D

                                    Dec 18 18:12:34 php: : Informational: DHClient spawned /etc/rc.newwanip and the new ip is wan - 90.224.168.54.
                                    Dec 18 18:12:29 login: login on ttyv0 as root
                                    Dec 18 18:12:29 php: : Informational: rc.newwanip is starting.
                                    Dec 18 18:12:28 check_reload_status: rc.newwanip starting
                                    Dec 18 18:12:25 dhclient: /sbin/route add default 90.224.168.1
                                    Dec 18 18:12:25 dhclient: New Routers (rl0): 90.224.168.1
                                    Dec 18 18:12:25 dhclient: New Broadcast Address (rl0): 90.224.168.255
                                    Dec 18 18:12:25 dhclient: New Subnet Mask (rl0): 255.255.255.0
                                    Dec 18 18:12:25 dhclient: New IP Address (rl0): 90.224.168.54
                                    Dec 18 18:12:23 php: : Failed to update WAN IP, restarting dhclient.
                                    Dec 18 18:12:23 php: : Informational: rc.newwanip is starting.
                                    Dec 18 18:12:23 check_reload_status: rc.newwanip starting
                                    –---------------------------
                                    however, i dont think this script will solve the "short write: wanted 21 but got 0 bytes" error, or does it ?

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      sullrich
                                      last edited by Dec 18, 2006, 7:21 PM

                                      It does not solve it, it simply works around the issue for the time being.  Anyone else tested?

                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        Selective
                                        last edited by Dec 18, 2006, 7:37 PM

                                        i know, but i think there is two errors,
                                        first, when it failes to update the wan ip, that have been "solved" with the script.
                                        but the second with "short write" will not be solved by this, i think.

                                        1 Reply Last reply Reply Quote 0
                                        • S
                                          Selective
                                          last edited by Dec 19, 2006, 8:41 PM

                                          i can confirm that the new script (rc.newwanip) is working great !!! ;D :D ;D

                                          1 Reply Last reply Reply Quote 0
                                          33 out of 199
                                          • First post
                                            33/199
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.