The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
Article Feedback - NAT rules - for IP Filter
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
Author: Ken Dyer 
Date:   18-02-02 09:53

Followed instructions to the last letter, everything works fine for exactly 2 hours then my connection on my client to the net disappears, i can see packets going out the modem but nothing coming back in. I do a dhcp release renew and it starts working again......go figure, i can't.

Reply To This Message
 Re: nat
Author: Dan Langille 
Date:   18-02-02 16:33

Does sounds like a NAT problem. Sounds more like a DHCP problem. I had similar problems a week or two ago, but I would have to renew the lease manually and the problem reoccurred after about 4 days.

Reply To This Message
 Re: nat
Author: JR 
Date:   22-02-02 04:05

try configuring crontab with:

0 0 * * * /usr/bin/killall dhclient && dhclient ed0

where 0 0 * * * is once a day. every day
and /usr/bin/killall dhclient - releases your ip and
dhclient ed0 - renews your ip ( the "&&" ensures the first command is complete before the second starts)

If there is an error in the syntax ..sorry..I am extremely tired.
But you get the idea.

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 

 User Login
 User Name:
 Remember my login:
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum