Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Apr 2002 11:57:21 +0200
From:      "Martin Tsanov" <cyberzone@odessos.org>
To:        <freebsd-questions@freebsd.org>
Subject:   need help for my gateway
Message-ID:  <001201c1dee3$c6c7a640$0164a8c0@cyberzone.odessos.org>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Hello all,

my name is Martin Tsanov and i live in Bulgaria. i own a club for computer games and internet access and want to have a FreeBSD box as my gateway.for now, my gateway is a windows machine with Wingate software, but the other windows machines can access only the web and not the outside game servers i am interested in. i am a newbie for both unix and freebsd
so, i downloaded the 4.5-install.iso and burned the CD. i installed FreeBSD 4.5 on a Pentium 166 with 32 RAM and 2,5 Gb HDD with 2 ethernets - 3COM ISA 3C509B - ep0 - ip 212.95.167.135 - and Realtek PCI 8029 - ed0 - ip 192.168.100.1 the gateway for my isp is 212.95.167.130 and the name server is the same
then i used the GENERIC kernel, but only added these lines:
options    IPFIREWALL
options    IPDIVERT
compiled and installed the new kernel.
configured natd as described in the FreeBSD cheat sheets at www.mostgraveconcern.com/freebsd 
at this stage i'm not interested in having a firewall ,so i added the following lines at the bottom of /etc/rc.firewall
/sbin/ipfw -f flush
/sbin/ipfw add divert natd all from any to any via ep0
/sbin/ipfw add pass all from any to any

from the freebsd i am able to ping machines on both networks and to traceroute over the internet.
the windows machines are equipped with Realtek 8129 fast ethernets and the local network works fine. they are configured with gateway the freebsd box.

now, the question :)
i am not able to access the internet from the windows machines. do i need some proxying software on the freebsd box, like squid?
and, i am interested in the counter-strike game servers. they run on port 27010 or 27015 and i am unable to get the list of servers from the windows boxes. if i equip a windows machine with the real 212.95.167.135 address, everything is fine, but only for this machine, and not for the rest. should i specify dns on the windows boxes and what if i should?

thanks in advance,
Martin

[-- Attachment #2 --]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=koi8-r">
<META content="MSHTML 5.50.4134.600" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello all,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>my name is Martin Tsanov and i live in Bulgaria. i 
own a club for computer games and internet access and want to have a FreeBSD box 
as my gateway.for now, my gateway is a windows machine with Wingate software, 
but the other windows machines can access only the web and not the outside game 
servers i am interested in. i am a newbie for both unix and freebsd</FONT></DIV>
<DIV><FONT face=Arial size=2>so, i downloaded the 4.5-install.iso and burned the 
CD. i installed FreeBSD 4.5 on a Pentium 166 with 32 RAM and 2,5 Gb HDD with 2 
ethernets - 3COM ISA 3C509B - ep0 - ip 212.95.167.135 - and Realtek PCI 8029 - 
ed0 - ip 192.168.100.1 the gateway for my isp is 212.95.167.130 and the name 
server is the same</FONT></DIV>
<DIV><FONT face=Arial size=2>then i used the GENERIC kernel, but only added 
these lines:</FONT></DIV>
<DIV><FONT face=Arial size=2>options&nbsp;&nbsp;&nbsp; IPFIREWALL</FONT></DIV>
<DIV><FONT face=Arial size=2>options&nbsp;&nbsp;&nbsp; IPDIVERT</FONT></DIV>
<DIV><FONT face=Arial size=2>compiled and installed the new kernel.</FONT></DIV>
<DIV><FONT face=Arial size=2>configured natd as described in the FreeBSD cheat 
sheets at <A 
href="http://www.mostgraveconcern.com/freebsd">www.mostgraveconcern.com/freebsd</A>; 
</FONT></DIV>
<DIV><FONT face=Arial size=2>at this stage i'm not interested in having a 
firewall ,so&nbsp;i added the following lines at the bottom of 
/etc/rc.firewall</FONT></DIV>
<DIV><FONT face=Arial size=2>/sbin/ipfw -f flush</FONT></DIV>
<DIV><FONT face=Arial size=2>/sbin/ipfw add divert natd all from any to any via 
ep0</FONT></DIV>
<DIV><FONT face=Arial size=2>/sbin/ipfw add pass all from any to 
any</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>from the freebsd i am able to ping machines on both 
networks and to traceroute over the internet.</FONT></DIV>
<DIV><FONT face=Arial size=2>the windows machines are equipped with Realtek 8129 
fast ethernets and the local network works fine. they are configured with 
gateway the freebsd box.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>now, the question :)</FONT></DIV>
<DIV><FONT face=Arial size=2>i am not able to access the internet from the 
windows machines. do i need some proxying software on the freebsd box, like 
squid?</FONT></DIV>
<DIV><FONT face=Arial size=2>and, i am interested in the counter-strike game 
servers. they run on port 27010 or 27015 and i am unable to get the list of 
servers from the windows boxes. if i equip a windows machine with the real 
212.95.167.135 address, everything is fine, but only for this machine, and not 
for the rest. should i specify dns on the windows boxes and what if i 
should?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>thanks in advance,</FONT></DIV>
<DIV><FONT face=Arial size=2>Martin</FONT></DIV></BODY></HTML>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001201c1dee3$c6c7a640$0164a8c0>