Re: Share connection with PF

2005-02-28 Thread Bachelier Vincent
Ok, I have found THE solution :d
Yes, we can share connection with only one card !

The method:

Setup a card for the public address,
set an alias => 192.168.0.1 for example

set gateway_enable=YES in rc.conf
reload routing

ok, now here my PF file:
ext_if="rl0"
int_ip="192.168.0.0/24"
ext_ip="82.66.171.150"

no nat on $ext_if from $int_ip to $int_ip
nat on $ext_if from $int_ip to any -> $ext_ip

pass in all
pass out all

This Work !

We don't nat from local network to local network
and we nat all other !

Then all work fine

Of course this can be only use with a computer with one card, a switch and the 
connection on the switch

It's better with 2 cards, but possible with one !

See ya

Le Sun, Feb 27, 2005 at 07:58:22PM +0100, Bachelier Vincent a écrit:
> From: Bachelier Vincent <[EMAIL PROTECTED]>
> To: freebsd-questions@freebsd.org
> Date: Sun, 27 Feb 2005 19:58:22 +0100
> Subject: Share connection with PF
> 
> Ok, I have FreeBSD 5.3 with PF.
> How to share connection from a routeur with only one network card ?
> 
> My network is like that:
> 
> Internet connection in DHCP, Routing computer, Workstation computer on
> a switch
> 
> The router take connection by DHCP and share it to my Workstation
> The workstation use my router to navigate
> 
> Routeur:
>   RL0: DHCP, alias 192.168.0.1
> Workstation:
>   RL0: 192.168.0.2
>   Gateways: 192.168.0.1
> 
> Ok, how to do ?
> 
> Thx a lot for support
> 
> -- 
> Vincent Bachelier <[EMAIL PROTECTED]>
> Language: Francais / English
> Societ(e/y) : Solintech - http://www.solintech.fr
> Blog: http://dieghostfbsd.blogspot.com
> 
> Sourceforge
>  Project : 
>   Ripperwww: http://www.sourceforge.net/projects/ripperwww
> 
> Citation (fortune):
> 
> "I haven't lost my mind; I know exactly where I left it."

-- 
Vincent Bachelier <[EMAIL PROTECTED]>
Language: Francais / English
Societ(e/y) : Solintech - http://www.solintech.fr - Serveurs linux
Blog: http://dieghostfbsd.blogspot.com
Site perso  : http://www.solintech.fr/freebsd/ - FreeBSD Donjon

Citation (fortune):

During a grouse hunt in North Carolina two intrepid sportsmen
were blasting away at a clump of trees near a stone wall.  Suddenly a
red-faced country squire popped his head over the wall and shouted,
"Hey, you almost hit my wife."
"Did I?"  cried the hunter, aghast.  "Terribly sorry.  Have a
shot at mine, over there."
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Share connection with PF

2005-02-27 Thread Bachelier Vincent
Yes,
it's not a real router, it's a bookpc
But it has only one card ...
They is no problem to share connection on linux, but one on freebsd
perhaps a solution ?
Can I create a virtual card on an alias of another card ?
Well, thx for support

Le Sun, Feb 27, 2005 at 09:42:49PM +0100, Stevan Tiefert a écrit:
> From: Stevan Tiefert <[EMAIL PROTECTED]>
> Cc: freebsd-questions@freebsd.org
> To: Bachelier Vincent <[EMAIL PROTECTED]>
> Date: Sun, 27 Feb 2005 21:42:49 +0100 (CET)
> Subject: Re: Share connection with PF
> 
> 
> 
> On Sun, 27 Feb 2005, Bachelier Vincent wrote:
> 
> > Ok, I have FreeBSD 5.3 with PF.
> > How to share connection from a routeur with only one network card ?
> >
> > My network is like that:
> >
> > Internet connection in DHCP, Routing computer, Workstation computer on
> > a switch
> >
> > The router take connection by DHCP and share it to my Workstation
> > The workstation use my router to navigate
> >
> > Routeur:
> >   RL0: DHCP, alias 192.168.0.1
> > Workstation:
> >   RL0: 192.168.0.2
> >   Gateways: 192.168.0.1
> >
> > Ok, how to do ?
> >
> > Thx a lot for support
> >
> > --
> > Vincent Bachelier <[EMAIL PROTECTED]>
> > Language: Francais / English
> > Societ(e/y) : Solintech - http://www.solintech.fr
> > Blog: http://dieghostfbsd.blogspot.com
> >
> > Sourceforge
> >  Project :
> > Ripperwww: http://www.sourceforge.net/projects/ripperwww
> >
> > Citation (fortune):
> >
> > "I haven't lost my mind; I know exactly where I left it."
> > ___
> > freebsd-questions@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> >
> 
> Hello Vincent,
> 
> did I really understood that your Router has only ONE network-card???
> 
> With regards
> Stevan Tiefert
> 

-- 
Vincent Bachelier <[EMAIL PROTECTED]>
Language: Francais / English
Societ(e/y) : Solintech - http://www.solintech.fr
Blog: http://dieghostfbsd.blogspot.com

Sourceforge
 Project : 
Ripperwww: http://www.sourceforge.net/projects/ripperwww

Citation (fortune):

Tomorrow will be canceled due to lack of interest.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Share connection with PF

2005-02-27 Thread Stevan Tiefert


On Sun, 27 Feb 2005, Bachelier Vincent wrote:

> Ok, I have FreeBSD 5.3 with PF.
> How to share connection from a routeur with only one network card ?
>
> My network is like that:
>
> Internet connection in DHCP, Routing computer, Workstation computer on
> a switch
>
> The router take connection by DHCP and share it to my Workstation
> The workstation use my router to navigate
>
> Routeur:
>   RL0: DHCP, alias 192.168.0.1
> Workstation:
>   RL0: 192.168.0.2
>   Gateways: 192.168.0.1
>
> Ok, how to do ?
>
> Thx a lot for support
>
> --
> Vincent Bachelier <[EMAIL PROTECTED]>
> Language: Francais / English
> Societ(e/y) : Solintech - http://www.solintech.fr
> Blog: http://dieghostfbsd.blogspot.com
>
> Sourceforge
>  Project :
>   Ripperwww: http://www.sourceforge.net/projects/ripperwww
>
> Citation (fortune):
>
> "I haven't lost my mind; I know exactly where I left it."
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>

Hello Vincent,

did I really understood that your Router has only ONE network-card???

With regards
Stevan Tiefert

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


Share connection with PF

2005-02-27 Thread Bachelier Vincent
Ok, I have FreeBSD 5.3 with PF.
How to share connection from a routeur with only one network card ?

My network is like that:

Internet connection in DHCP, Routing computer, Workstation computer on
a switch

The router take connection by DHCP and share it to my Workstation
The workstation use my router to navigate

Routeur:
  RL0: DHCP, alias 192.168.0.1
Workstation:
  RL0: 192.168.0.2
  Gateways: 192.168.0.1

Ok, how to do ?

Thx a lot for support

-- 
Vincent Bachelier <[EMAIL PROTECTED]>
Language: Francais / English
Societ(e/y) : Solintech - http://www.solintech.fr
Blog: http://dieghostfbsd.blogspot.com

Sourceforge
 Project : 
Ripperwww: http://www.sourceforge.net/projects/ripperwww

Citation (fortune):

"I haven't lost my mind; I know exactly where I left it."
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"