Sharing internet connection, how?

2006-01-24 Thread cblasius

Hello!

I have two ethernet cards on my computer. The first is rl0 - with
the adrress from my ISP xxx.xxx.xxx.xxx (DSL 1M), and the second is vr0 
- with the address 192.168.1.1.


I want to use my computer as gateway to internet for the other
computers in my home. How I can sharing internet connection on my 
computer to the rest computers in my home? I hve 2 computers (my and my 
wife (rl0 192.168.1.2)).


Could somone help me, I'm beginner?

I have the following rc.conf file:

defaultrouter=vvv.vvv.vvv.vvv
gateway_enable=YES
natd_enable=YES
hostname=myhost
ifconfig_rl0=inet xxx.xxx.xxx.xxx  netmask 255.255.255.0
ifconfig_vr0=inet 192.168.1.1 netmask 255.255.255.0
linux_enable=YES
moused_enable=YES
moused_flags=-3
sshd_enable=YES
usbd_enable=YES

What I must to do else, because my wife could not connect to the
internet?
FreeBSD 6.0-RELEASE

I'm sorry for my English.

Best regards,
cblasius


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Sharing internet connection, how?

2006-01-24 Thread Kilian Hagemann
On Tuesday 24 January 2006 18:19, cblasius pondered:
 Hello!

 I have two ethernet cards on my computer. The first is rl0 - with
 the adrress from my ISP xxx.xxx.xxx.xxx (DSL 1M), and the second is vr0
 - with the address 192.168.1.1.

 I want to use my computer as gateway to internet for the other
 computers in my home. How I can sharing internet connection on my
 computer to the rest computers in my home? I hve 2 computers (my and my
 wife (rl0 192.168.1.2)).

 Could somone help me, I'm beginner?

 I have the following rc.conf file:

 defaultrouter=vvv.vvv.vvv.vvv
 gateway_enable=YES
 natd_enable=YES
 hostname=myhost
 ifconfig_rl0=inet xxx.xxx.xxx.xxx  netmask 255.255.255.0
 ifconfig_vr0=inet 192.168.1.1 netmask 255.255.255.0
 linux_enable=YES
 moused_enable=YES
 moused_flags=-3
 sshd_enable=YES
 usbd_enable=YES

 What I must to do else, because my wife could not connect to the
 internet?
 FreeBSD 6.0-RELEASE

Until recently I managed a very similar setup. I think all you need is

natd_interface=rl0
natd_flags=-log_ipfw_denied -log_denied

The latter is just so that you can see spurious connection attempts 
in /var/log/security. Check man natd for more info.

Also, you'll have to either statically configure your wife's PC to use 
192.168.1.2 (or whatever), default gateway/route 192.168.1.1 and proper DNS. 
Alternatively install and configure dhcpd, or, which I like more for a simple 
application like that, dnsmasq. Google will tell you more :-)

-- 
Kilian Hagemann

Climate Systems Analysis Group
University of Cape Town
Republic of South Africa
Tel(w): ++27 21 650 2748
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Sharing internet connection, how?

2006-01-24 Thread fbsd_user

What you want to do is covered step by step in
 the install guide  at www.a1poweruser.com

or at http://www.unixguide.net/freebsd/fbsd_installguide/index.php

good luck


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of cblasius
Sent: Tuesday, January 24, 2006 11:20 AM
To: freebsd-questions@freebsd.org
Subject: Sharing internet connection, how?


Hello!

I have two ethernet cards on my computer. The first is rl0 - with
the adrress from my ISP xxx.xxx.xxx.xxx (DSL 1M), and the second is
vr0
- with the address 192.168.1.1.

I want to use my computer as gateway to internet for the other
computers in my home. How I can sharing internet connection on my
computer to the rest computers in my home? I hve 2 computers (my and
my
wife (rl0 192.168.1.2)).

Could somone help me, I'm beginner?

I have the following rc.conf file:

defaultrouter=vvv.vvv.vvv.vvv
gateway_enable=YES
natd_enable=YES
hostname=myhost
ifconfig_rl0=inet xxx.xxx.xxx.xxx  netmask 255.255.255.0
ifconfig_vr0=inet 192.168.1.1 netmask 255.255.255.0
linux_enable=YES
moused_enable=YES
moused_flags=-3
sshd_enable=YES
usbd_enable=YES

What I must to do else, because my wife could not connect to the
internet?
FreeBSD 6.0-RELEASE

I'm sorry for my English.

Best regards,
cblasius


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
[EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Sharing internet connection, how?

2006-01-24 Thread Lorin Lund

cblasius wrote:


Hello!

I have two ethernet cards on my computer. The first is rl0 - with
the adrress from my ISP xxx.xxx.xxx.xxx (DSL 1M), and the second is 
vr0 - with the address 192.168.1.1.


I want to use my computer as gateway to internet for the other
computers in my home. How I can sharing internet connection on my 
computer to the rest computers in my home? I hve 2 computers (my and 
my wife (rl0 192.168.1.2)).


Could somone help me, I'm beginner?

I have the following rc.conf file:

defaultrouter=vvv.vvv.vvv.vvv
gateway_enable=YES
natd_enable=YES
hostname=myhost
ifconfig_rl0=inet xxx.xxx.xxx.xxx  netmask 255.255.255.0
ifconfig_vr0=inet 192.168.1.1 netmask 255.255.255.0
linux_enable=YES
moused_enable=YES
moused_flags=-3
sshd_enable=YES
usbd_enable=YES

What I must to do else, because my wife could not connect to the
internet?
FreeBSD 6.0-RELEASE

I'm sorry for my English.

Best regards,
cblasius


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]



Is your wife's PC running Windows or FreeBSD?

Can your wife's PC ping your PC?
   If not then that is the first problem to solve.
Can your wife's PC ping an outside address given as numbers?
 (Like ping -c 4 18.7.22.69)
 If she can ping by number address but not by host name then the 
problem is her DNS

 configuration.
 If she can't ping by number address and you can then your PC is not 
forwarding
 things correctly - I've done that before but I don't remember all the 
details.


The more information you can give us the more likely we will be able to 
help.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Sharing internet connection, how?

2006-01-24 Thread Dan O'Connor

I have two ethernet cards on my computer. The first is rl0 - with
the adrress from my ISP xxx.xxx.xxx.xxx (DSL 1M), and the second is 
vr0 - with the address 192.168.1.1.


I want to use my computer as gateway to internet for the other
computers in my home. How I can sharing internet connection on my 
computer to the rest computers in my home? I hve 2 computers (my and 
my wife (rl0 192.168.1.2)).


You need to configure a firewall and network address translation (NAT).

Here's how I do it: 
http://www.mostgraveconcern.com/freebsd/sheet.cgi?ipfw


Good luck and have fun!

~Dan

--
FreeBSD Cheat Sheets
  http://www.mostgraveconcern.com/freebsd/ 



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]