LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-24-2002, 08:45 PM   #1
Jase
Member
 
Registered: May 2001
Location: Panama City Beach, FL
Distribution: *.BSD
Posts: 113

Rep: Reputation: 15
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
 
Old 01-24-2002, 11:10 PM   #2
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
what router?

what internet connection?


I'm confused
 
Old 01-24-2002, 11:20 PM   #3
Jase
Member
 
Registered: May 2001
Location: Panama City Beach, FL
Distribution: *.BSD
Posts: 113

Original Poster
Rep: Reputation: 15
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

Last edited by Jase; 01-25-2002 at 07:05 AM.
 
Old 01-25-2002, 11:53 AM   #4
Jase
Member
 
Registered: May 2001
Location: Panama City Beach, FL
Distribution: *.BSD
Posts: 113

Original Poster
Rep: Reputation: 15
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?
 
Old 01-25-2002, 09:42 PM   #5
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
You could try static for a while to test it.

dhcp should not do that but who knows.


anything in /var/log/messages?
 
Old 01-26-2002, 12:14 AM   #6
Jase
Member
 
Registered: May 2001
Location: Panama City Beach, FL
Distribution: *.BSD
Posts: 113

Original Poster
Rep: Reputation: 15
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?
 
Old 01-26-2002, 09:26 AM   #7
Jase
Member
 
Registered: May 2001
Location: Panama City Beach, FL
Distribution: *.BSD
Posts: 113

Original Poster
Rep: Reputation: 15
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.
 
Old 01-26-2002, 10:48 AM   #8
Jase
Member
 
Registered: May 2001
Location: Panama City Beach, FL
Distribution: *.BSD
Posts: 113

Original Poster
Rep: Reputation: 15
although,....this doesn't help either


Code:
collisions:2466
 
Old 01-27-2002, 10:41 AM   #9
Jase
Member
 
Registered: May 2001
Location: Panama City Beach, FL
Distribution: *.BSD
Posts: 113

Original Poster
Rep: Reputation: 15
heheh,....time for a new nic me thinks

Code:
 TX packets:696099 errors:15 dropped:0 overruns:0 carrier:0
      collisions:68618 txqueuelen:100
 
Old 01-27-2002, 09:24 PM   #10
Jase
Member
 
Registered: May 2001
Location: Panama City Beach, FL
Distribution: *.BSD
Posts: 113

Original Poster
Rep: Reputation: 15
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?
 
Old 01-27-2002, 09:38 PM   #11
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connecting PC to router through another PC freek sanders Linux - Wireless Networking 5 06-16-2005 03:23 PM
connecting through a shared router crash_happy Linux - Newbie 4 11-15-2004 03:19 AM
Connecting to Internet using Router oacikgoz Debian 1 10-04-2004 05:02 PM
connecting to Printer through router Ishjer Linux - Hardware 4 11-19-2003 04:47 PM
Connecting to router Falcon 213 Slackware 5 02-16-2003 09:22 PM


All times are GMT -5. The time now is 01:17 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration