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   Previous Message  |  Next Message 
 RE: how to run games through a freebsd gateway/rou
Author: Dan Larsson 
Date:   31-10-00 12:03

You should try the *BSD type masq-type-solution, NATD.

Here's a shortlist of what you'd need to do to use it:

+ Recompile your kernel with the option IPDIVERT
+ Add the following to your /etc/rc.conf
gateway_enable="YES"
firewall_enable="YES"
firewall_type="SIMPLE"
natd_enable="YES"
natd_interface="<nic with real internet address>"
natd_flags="-f /etc/rc.natd"
+ Add a few basic things to your /etc/rc.natd file:
echo -e "same_ports
use_sockets
unregistered_only
dynamic" >
/etc/rc.natd
+ Reboot and enjoy!

This works for me!

Note that you're probably better off creating your own 'firewall_type' to suit
your needs better. To read more about this check out the man pages for
'ipfw' and 'natd'.

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

 Topics Author  Date
 how to run games through a freebsd gateway/router   new
Pascal Zoutendijk 30-10-00 22:45 
 RE: how to run games through a freebsd gateway/rou   new
Dan Larsson 31-10-00 12:03 
 RE: how to run games through a freebsd gateway/rou   new
Dan Larsson 31-10-00 12:15 
 RE: how to run games through a freebsd gateway/rou   new
Pascal Zoutendijk 04-11-00 21:52 
 RE: how to run games through a freebsd gateway/rou   new
Dan Larsson 06-11-00 10:58 
 RE: how to run games through a freebsd gateway/rou   new
Iain Patterson 07-11-00 03:40 
 RE: how to run games through a freebsd gateway/rou   new
Iain Patterson 13-11-00 03:22 


 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