one physical interface -> n virtual interfaces

2012-10-16 Thread Mariano Cediel
How do I create, from a physical interface, n virtual interfaces, but
all effects are real, their MAC different, on which we can do
individually NAT, etc, etc.?

I need one external interface has 2 public IPs, and I'll do every NAT
over every  (with ipfw and divert)
individually (each of them has its own gateway)

A little help to start researching .
Greetings.

(sorry for my poor english)

-- 

[o - -  -   --  -
   (\   |  u d t
   (  \_('>  c c s
   (__(=_) s o ?
  -"=
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


Re: one physical interface -> n virtual interfaces

2012-10-16 Thread Paul A. Procacci
On Tue, Oct 16, 2012 at 10:35:55PM +0200, Mariano Cediel wrote:
> How do I create, from a physical interface, n virtual interfaces, but
> all effects are real, their MAC different, on which we can do
> individually NAT, etc, etc.?
>
> I need one external interface has 2 public IPs, and I'll do every NAT
> over every  (with ipfw and divert)
> individually (each of them has its own gateway)
>
> A little help to start researching .
> Greetings.

http://freebsd.1045724.n5.nabble.com/Virtual-Network-Interface-Card-td4005109.html

The above was posted in late 2010.  It has one example of creating vitual 
interfaces using the netgraph module.  3rd post from the top.

I'm not entirely sure if this is the current _correct_ way, but I imagine is 
still accurate and can be used to get you started.

~Paul



This message may contain confidential or privileged information. If you are not 
the intended recipient, please advise us immediately and delete this message. 
See http://www.datapipe.com/legal/email_disclaimer/ for further information on 
confidentiality and the risks of non-secure electronic communication. If you 
cannot access these links, please notify us by reply message and we will send 
the contents to you.
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


Re: one physical interface -> n virtual interfaces

2012-10-17 Thread Julian Elischer

On 10/16/12 1:35 PM, Mariano Cediel wrote:

How do I create, from a physical interface, n virtual interfaces, but
all effects are real, their MAC different, on which we can do
individually NAT, etc, etc.?

I need one external interface has 2 public IPs, and I'll do every NAT
over every  (with ipfw and divert)
individually (each of them has its own gateway)

A little help to start researching .
Greetings.

(sorry for my poor english)


use netgraph ng_eiface, ng_bridge and ng_ether



___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"