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.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]

FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 When using NAT i can't veiw webpages or use outlook
Author: Joe 
Date:   09-03-01 14:33

Hi, i set up my network on my freebsd box, and i used nat so my win2kbox will go on the internet aswell. But on my win2kbox i can use ICQ, mIRC, napster, telnet, ftp etc but i can't view any websites or can i use outlook express.
due for some reason when i use NAT.
if you know how i can fix this problem then please reply to this link.

Joe

Reply To This Message
 
 Re: When using NAT i can't veiw webpages or use outlook
Author: Spud 
Date:   12-03-01 23:17

1)
If you're using IP Filter, make sure that your IPF.rules (or ipf.conf) file is set up to allow free outbound traffic, keeping state, while implementing a deny all policy coming in. This will keep unwanted traffic out, while allowing traffing in that you initiated from the inside. There are 3 major protocols, hence 3 lines to add:

pass out quick on ep1 proto tcp from any to any Flags S keep state
pass out quick on ep1 proto udp from any to any keep state
pass out quick on ep1 proto icmp from any to any keep state

where: ep1 is the outbound NIC

2)
If you wish to block incoming PINGs, add this line at the top:

block in quick on ep1 proto icmp from any to any

where: ep1 is the outbound NIC

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


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 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

phorum.org