LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Connecting through the router but,.... (https://www.linuxquestions.org/questions/linux-networking-3/connecting-through-the-router-but-12615/)

Jase 01-24-2002 08:45 PM

Connecting through the router but,....
 
Even though it works now,......in, say an hour the internet will stop funtioning. I dunno why though,...lol I am using port forwarding to connect through the router, but it seems kinda slow to me,....i dunno,...maybe it's just me. My main concern is why I lose internet. Maybe I have to tell eth1 to grab a new dhcp address every so often? Is that the "pump" command? If so are there any flags that you use? Can I put pump in a cron job to this every so often?

TIA -- Jase

DavidPhillips 01-24-2002 11:10 PM

what router?

what internet connection?


I'm confused

Jase 01-24-2002 11:20 PM

ooops,....sorry

eth0 = LAN
eth1 = cable modem

eth1 = gets ip from ISP dhcp

I woke up this morning and checked the status of eth0 and eth1,.....eth1 was down. Some how during the night, eth1 managed to turn itself off. eth0 was up and running with no problem. Anyone have a clue on this?

TIA -- jase

Jase 01-25-2002 11:53 AM

yup still same problem,....eth1 (WAN adapter) turns itself off,...lol,...I dunno how but every 4 hours or so, eth1 will just shutdown. Anyone run into this?

DavidPhillips 01-25-2002 09:42 PM

You could try static for a while to test it.

dhcp should not do that but who knows.


anything in /var/log/messages?

Jase 01-26-2002 12:14 AM

Code:

Jan 25 17:40:47 stats pumpd[9081]: failed to renew lease for device eth1
Jan 25 17:40:47 stats kernel: fp=UDP:2 a=DROP IN= OUT=eth1 SRC=10.0.0.1 DST=255.255.255.255 LEN=328 TOS=0x00 PREC=0x00
TTL=64 ID=0 DF PROTO=UDP SPT=68 DPT=67 LEN=308
Jan 25 17:40:47 stats pumpd[9081]: terminating as there are no more devices under management
Jan 25 18:00:23 stats sshd(pam_unix)[9387]: session opened for user jason by (uid=0)
Jan 25 18:00:30 stats su(pam_unix)[9416]: session opened for user root by jason(uid=506)
Jan 25 18:00:33 stats kernel: Linux Tulip driver version 0.9.15-pre6 (July 2, 2001)
Jan 25 18:00:33 stats kernel: tulip0:  MII transceiver #1 config 1000 status 782d advertising 01e1.
Jan 25 18:00:33 stats kernel: eth1: Lite-On 82c168 PNIC rev 33 at 0xdc00, 00:A0:CC:3D:36:46, IRQ 10.
Jan 25 18:00:33 stats /etc/hotplug/net.agent: register event not handled
Jan 25 18:00:33 stats pumpd[9506]: starting at (uptime 0 days, 21:26:56) Fri Jan 25 18:00:33 2002
Jan 25 18:00:33 stats kernel: fp=UDP:2 a=DROP IN= OUT=eth1 SRC=10.0.0.1 DST=255.255.255.255 LEN=328 TOS=0x00 PREC=0x00
TTL=64 ID=0 DF PROTO=UDP SPT=68 DPT=67 LEN=308
Jan 25 18:00:33 stats kernel: fp=UDP:2 a=DROP IN= OUT=eth1 SRC=10.0.0.1 DST=255.255.255.255 LEN=328 TOS=0x00 PREC=0x00
TTL=64 ID=0 DF PROTO=UDP SPT=68 DPT=67 LEN=308
Jan 25 18:00:42 stats pumpd[9506]: configured interface eth1
Jan 25 18:03:13 stats kernel: fp=TCP:1 a=DROP IN=eth1 OUT= MAC=00:a0:cc:3d:36:46:00:c0:49:14:03:b7:08:00 SRC=202.104.94
.57 DST=24.214.25.156 LEN=60 TOS=0x00 PREC=0x00 TTL=46 ID=23436 DF PROTO=TCP SPT=4927 DPT=111 WINDOW=32120 RES=0x00 SYN
 URGP=0
Jan 25 18:16:34 stats kernel: fp=TCP:1 a=DROP IN=eth1 OUT= MAC=00:a0:cc:3d:36:46:00:c0:49:14:03:b7:08:00 SRC=159.153.19
4.3 DST=24.214.25.156 LEN=40 TOS=0x00 PREC=0x00 TTL=51 ID=63936 PROTO=TCP SPT=80 DPT=1408 WINDOW=0 RES=0x00 ACK RST URG
P=0


This mean anything to you? :confused:

Jase 01-26-2002 09:26 AM

went to bed last night,...eth1 = running. Woke up this morning eth1 = down. I think I have found the problem though,....apparently my firewall won't allow dhcp to go out or come in from outside. So when eth1 tries to renew a lease my firewall basically to dhcp,..."fuck you". /me goes to play with firewall some. :)

Jase 01-26-2002 10:48 AM

although,....this doesn't help either :(


Code:

collisions:2466

Jase 01-27-2002 10:41 AM

heheh,....time for a new nic me thinks

Code:

TX packets:696099 errors:15 dropped:0 overruns:0 carrier:0
      collisions:68618 txqueuelen:100


Jase 01-27-2002 09:24 PM

Here is my problem I think. This is spamming my console.

Code:

Jan 27 21:23:42 stats kernel: fp=UDP:2 a=DROP IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:50:ba:a2:1f:f9:08:00 SRC=0.0.0.0 DST=255.255.255.255 LEN=328 TOS=0x00 PREC=0x00 TTL=128 ID=62464 PROTO=UDP SPT=68 DPT=67 LEN=308
Jan 27 21:23:58 stats kernel: fp=UDP:2 a=DROP IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:50:ba:a2:1f:f9:08:00 SRC=0.0.0.0 DST=255.255.255.255 LEN=328 TOS=0x00 PREC=0x00 TTL=128 ID=62720 PROTO=UDP SPT=68 DPT=67 LEN=308

I think my iptables rules are not allowing dhcpd on my LAN and also blocking my WAN dhcp from my ISP. What rules should I add to allow dhcpd on the LAN side and dhcp from my ISP?

DavidPhillips 01-27-2002 09:38 PM

Normally the lan interface is not firewalled.

you need the serverip for this rule

iptables -A INPUT -i eth0 -p tcp -s $DHCPSERVERIP --source-port 67 --destination-port 68 -j ACCEPT


All times are GMT -5. The time now is 02:27 PM.