DS-Lite

2013-10-02 Thread Pietro Paolini
I am struggling in finding some documentation which can help me to 
understand how to configure an DS-Lite ip tunnel ipv4->ipv6 |netowrk| 
ipv6->ipv4, my topology is composed by a Linux and a FreeBSD machine.


Linux (( TUNNEL )) FreeBSD

I know how to configure it in Linux but I have problem in retrieving 
those informations for FreeBSD, someone can point me on that ?


Thanks a lot.



Pietro Paolini
pulsarpie...@aol.com

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


Re: Newbye question VIM problem

2013-07-23 Thread Pietro Paolini

On Jul 23, 2013, at 5:16 PM, Fernando Apesteguía 
 wrote:

> ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/ports/i386/packages-9.0-release/Latest/

Yep, thanks a lot !

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


Re: Newbye question VIM problem

2013-07-23 Thread Pietro Paolini

On Jul 23, 2013, at 4:36 PM, "Teske, Devin"  wrote:

> env 
> PACKAGESITE=ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/ports/i386/packages-9.0-releases/Latest/
>  pkg_add -r vim-lite

Thanks for the quick answer but I got the error:
env 
PACKAGESITE=ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/ports/i386/packages-9.0-releases/Latest/
 pkg_add -r vim-lite
Error: Unable to get 
ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/ports/i386/packages-9.0-releases/Latest/vim-lite.tbz:
 File unavailable (e.g., file not found, no access)
pkg_add: unable to fetch 
'ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/ports/i386/packages-9.0-releases/Latest/vim-lite.tbz'
 by URL

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


Newbye question VIM problem

2013-07-23 Thread Pietro Paolini
Hello all,

I have to install in a probably not latest version BSD machine but when I try 
to 

pkg_add -r vim-lite
Error: Unable to get 
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-9.0-release/Latest/vim-lite.tbz:
 File unavailable (e.g., file not found, no access)
pkg_add: unable to fetch 
'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-9.0-release/Latest/vim-lite.tbz'
 by URL

I get that error, it should be cause by the fact that my system is not so new, 
am I wrong ? Any solution on that ?

Thanks a lot.
Pietro.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: VIMAGE

2013-06-03 Thread Pietro Paolini

On Jun 1, 2013, at 5:26 AM, "Teske, Devin"  wrote:

> 
> On May 31, 2013, at 3:05 PM, Teske, Devin wrote:
> 
>> 
>> On May 31, 2013, at 1:48 AM, Pietro Paolini wrote:
>> 
>>> 
>>> On May 30, 2013, at 6:25 PM, "Teske, Devin"  
>>> wrote:
>>> 
>>>> 
>>>> On May 30, 2013, at 3:35 AM, Pietro Paolini wrote:
>>>> 
>>>>> Hello all,
>>>>> 
>>>>> I am a new bye on the FreeBSD and I am looking at the VIMAGE features 
>>>>> experiencing some problems.
>>>>> I added the options :
>>>>> VIMAGE
>>>>> if_bridge
>>>>> 
>>>>> and I removed
>>>>> STCP
>>>>> 
>>>>> then I recompiled my kernel and install it.
>>>>> 
>>>>> After that, following this tutorial 
>>>>> http://imunes.tel.fer.hr/virtnet/eurobsdcon07_tutorial.pdf I tried the 
>>>>> "Exercise 2" which consist on 
>>>>> the following commands:
>>>>> 
>>>>> vimage -c n1
>>>>> vimage -c n2
>>>>> ngctl mkpeer efface ether ether
>>>>> ngctl mkpeer efface ether ether
>>>> 
>>>> Don't you just love autocorrect? (does the same thing to me… turns 
>>>> "eiface" into "efface")
>>>> 
>>>> 
>>>>> ngctl mkpeer em0: bridge lower link0
>>>> 
>>>> Looks good.
>>>> 
>>>> 
>>>>> ngctl name em0:lower bridge0
>>>> 
>>>> I usually do my "connect" before the "name"… but shouldn't matter. Should 
>>>> work all the same.
>>>> 
>>>> 
>>>>> ngctl connect em0: bridge0: upper link1
>>>> 
>>>> This looks wrong to me.
>>>> 
>>>> I'd expect:
>>>> 
>>>> ngctl connect em0: bridge0:lower upper link1
>>>> 
>>> 
>>> 
>>> Many thanks for the answer Devin,
>>> when I try to use that last command I receive:
>>> 
>>> ngctl connect em0: bridge0:lower upper link1
>>> ngctl: send msg: Invalid argument
>>> 
>>> What's wrong ?
>>> 
>> 
>> Let's start from scratch on a freshly booted box…
>> 
>> dte...@scu0a.jbsd.vicor.com ~ $ sudo ngctl ls -l
>> [sudo] Password:
>> There are 4 total nodes:
>>  Name: em0 Type: ether   ID: 0002   Num hooks: 0
>>  Name: em1 Type: ether   ID: 0003   Num hooks: 0
>>  Name: ngctl1719   Type: socket  ID: 0004   Num hooks: 0
>>  Name: msk0Type: ether   ID: 0001   Num hooks: 0
>> 
>> Ok… we have an "ether" type node for each of our physical adapters (these 
>> are provided by ng_ether(4); you didn't have to do anything to get these 
>> nodes).
>> 
>> We also have a single "socket" type node. This is the "ngctl" connection to 
>> the netgraph subsystem (you can learn more by reading ng_socket(4)).
>> 
>> Here's the corresponding hardware behind em0, em1, and msk0:
>> 
>> ===
>> 
>> dte...@scu0a.jbsd.vicor.com ~ $ grep '\(em\|e1000phy\|mskc\?\)[[:digit:]]' 
>> /var/run/dmesg.boot
>> mskc0:  port 0xdc00-0xdcff mem 
>> 0xfcffc000-0xfcff irq 16 at device 0.0 on pci5
>> msk0:  on mskc0
>> msk0: Ethernet address: xx:xx:xx:xx:xx:xx
>> miibus0:  on msk0
>> e1000phy0:  PHY 0 on miibus0
>> e1000phy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 
>> 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto
>> mskc0: [ITHREAD]
>> em0:  port 0xec80-0xecbf 
>> mem 0xfebe-0xfebf irq 16 at device 4.0 on pci7
>> em0: [FILTER]
>> em0: Ethernet address: xx:xx:xx:xx:xx:xx
>> em1:  port 0xec00-0xec3f 
>> mem 0xfeba-0xfebb,0xfeb8-0xfeb9 irq 18 at device 6.0 on pci7
>> em1: [FILTER]
>> em1: Ethernet address: xx:xx:xx:xx:xx:xx
>> em0: link state changed to UP
>> 
>> ===
>> 
>> Next, let's make a bridge (think of it as a big software switch that we're 
>> going to hook a bunch of interfaces; created, physical, or otherwise).
>> 
>> Since I'm doing this over an SSH connection (a mistake I made earlier 
>> today), I'm not going to touch em0 (the adapter my SSH connection is using)

Re: VIMAGE

2013-05-31 Thread Pietro Paolini

On May 30, 2013, at 6:38 PM, "Teske, Devin"  wrote:

> 
> On May 30, 2013, at 9:18 AM, Joe wrote:
> 
>> Pietro Paolini wrote:
>>> On May 30, 2013, at 2:29 PM, Joe  wrote:
>>>> Pietro Paolini wrote:
>>>>> Hello all,
>>>>> I am a new bye on the FreeBSD and I am looking at the VIMAGE features 
>>>>> experiencing some problems.
>>>>> I added the options :
>>>>> VIMAGE
>>>>> if_bridge
>>>>> and I removed
>>>>> STCP
>>>>> then I recompiled my kernel and install it.
>>>>> After that, following this tutorial 
>>>>> http://imunes.tel.fer.hr/virtnet/eurobsdcon07_tutorial.pdf I tried the 
>>>>> "Exercise 2" which consist on the following commands:
>>>>> vimage -c n1
>>>>> vimage -c n2
>>>>> ngctl mkpeer efface ether ether
>>>>> ngctl mkpeer efface ether ether
>>>>> ngctl mkpeer em0: bridge lower link0
>>>>> ngctl name em0:lower bridge0
>>>>> ngctl connect em0: bridge0: upper link1
>>>>> ngctl connect ngeth0: bridge0: ether link2
>>>>> ngctl connect ngeth1: bridge0: ether link3
>>>>> vimage -i n1 ngeth0 e0
>>>>> But my virtual interface on the n1 vimage does not receive any packet 
>>>>> from the external network while I can see the packet go out from it.
>>>>> For instance using DHCP, e0 on n1 sends DHCP packets but it does not 
>>>>> receive the answers (which are send, I verified it from wireshark), in 
>>>>> adding
>>>>> the ARP request for his IP address (if I try to add it statically) are 
>>>>> not received then it can not answer.
>>>>> At the end of the line the question is: how can I make this "virtual 
>>>>> network" and the external real network be able to communicate ?
>>>>> Thanks in advance.
>>>>> Pietro.
>>>> 1. That link is from 2007. So very much has changed since then.
>>>> There are more current links on the internet about this subject. Most are 
>>>> for 8.X releases.
>>>> 
>>>> 2. If your running 8.2-RELEASE or 9.1-RELEASE all you need to add is 
>>>> "options vimage" statement to your kernel source and recompile.
>>>> 
>>>> 3. There are 2 networking methods available for creating vnet/vimage jail 
>>>> networks, if_bridge/epair and netgraph. The if_bridge/epair method is far 
>>>> simpler to config and use then the netgraph method.
>>>> 
>>>> 4. There are 2 methods of jail setup, the rc.d method where your jail 
>>>> definition parameters go into the hosts rc.conf and the jail(8) method 
>>>> where you can place each jails definition parameter in separate files.
>>>> 
>>>> 5. There are two very important show stopper PRs on vimage,
>>>> 164763 memory leak and 149050 the rc.d keyword "nojail" problem.
>>>> Vimage is a very long way from prime time usage, thats why it's labeled as 
>>>> highly experimental. Host system freezes and page faults are common.
>>>> 
>>>> 6. When it comes to running a firewall in a vnet/vimage jail your limited 
>>>> to IPFW and it has limitations. Dummynet and in kernel NAT cause system 
>>>> freezes. IPFILTER causes page fault at boot time. PF will run on the host 
>>>> but not run in the vnet/vimage jail. Here are a bunch of PRs on vimage 
>>>> firewall problems, 143621, 176092, 161094, 176992, 143808, 148155, 165252, 
>>>> 178480, 178482
>>>> 
>>>> 
>>>> Check out these links
>>>> 
>>>> http://druidbsd.sourceforge.net/vimage.shtml
>>>> http://devinteske.com/vimage-jails-on-freebsd-8
>>>> http://lists.freebsd.org/pipermail/freebsd-virtualization/2011-September/000747.html
>>>> 
>>>> http://bsdbased.com/2009/12/06/freebsd-8-vimage-epair-howto
>>>> http://zewaren.net/site/?q=node/78
>>>> 
>>>> 
>>>> ___
>>>> freebsd-questions@freebsd.org mailing list
>>>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>>>> To unsubscribe, send any mail to 
>>>> "freebsd-questions-unsubscr...@freebsd.org"
>>> Thanks so much, really interesting and good links but I can't again 
>>> accomplish my task - I followe

Re: VIMAGE

2013-05-31 Thread Pietro Paolini

On May 30, 2013, at 6:25 PM, "Teske, Devin"  wrote:

> 
> On May 30, 2013, at 3:35 AM, Pietro Paolini wrote:
> 
>> Hello all,
>> 
>> I am a new bye on the FreeBSD and I am looking at the VIMAGE features 
>> experiencing some problems.
>> I added the options :
>> VIMAGE
>> if_bridge
>> 
>> and I removed
>> STCP
>> 
>> then I recompiled my kernel and install it.
>> 
>> After that, following this tutorial 
>> http://imunes.tel.fer.hr/virtnet/eurobsdcon07_tutorial.pdf I tried the 
>> "Exercise 2" which consist on 
>> the following commands:
>> 
>> vimage -c n1
>> vimage -c n2
>> ngctl mkpeer efface ether ether
>> ngctl mkpeer efface ether ether
> 
> Don't you just love autocorrect? (does the same thing to me… turns "eiface" 
> into "efface")
> 
> 
>> ngctl mkpeer em0: bridge lower link0
> 
> Looks good.
> 
> 
>> ngctl name em0:lower bridge0
> 
> I usually do my "connect" before the "name"… but shouldn't matter. Should 
> work all the same.
> 
> 
>> ngctl connect em0: bridge0: upper link1
> 
> This looks wrong to me.
> 
> I'd expect:
> 
> ngctl connect em0: bridge0:lower upper link1
> 


Many thanks for the answer Devin,
when I try to use that last command I receive:

ngctl connect em0: bridge0:lower upper link1
ngctl: send msg: Invalid argument

 What's wrong ?

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


Re: VIMAGE

2013-05-30 Thread Pietro Paolini

On May 30, 2013, at 2:29 PM, Joe  wrote:

> Pietro Paolini wrote:
>> Hello all,
>> I am a new bye on the FreeBSD and I am looking at the VIMAGE features 
>> experiencing some problems.
>> I added the options :
>> VIMAGE
>> if_bridge
>> and I removed
>> STCP
>> then I recompiled my kernel and install it.
>> After that, following this tutorial 
>> http://imunes.tel.fer.hr/virtnet/eurobsdcon07_tutorial.pdf I tried the 
>> "Exercise 2" which consist on the following commands:
>> vimage -c n1
>> vimage -c n2
>> ngctl mkpeer efface ether ether
>> ngctl mkpeer efface ether ether
>> ngctl mkpeer em0: bridge lower link0
>> ngctl name em0:lower bridge0
>> ngctl connect em0: bridge0: upper link1
>> ngctl connect ngeth0: bridge0: ether link2
>> ngctl connect ngeth1: bridge0: ether link3
>> vimage -i n1 ngeth0 e0
>> But my virtual interface on the n1 vimage does not receive any packet from 
>> the external network while I can see the packet go out from it.
>> For instance using DHCP, e0 on n1 sends DHCP packets but it does not receive 
>> the answers (which are send, I verified it from wireshark), in adding
>> the ARP request for his IP address (if I try to add it statically) are not 
>> received then it can not answer.
>> At the end of the line the question is: how can I make this "virtual 
>> network" and the external real network be able to communicate ?
>> Thanks in advance.
>> Pietro.
> 
> 1. That link is from 2007. So very much has changed since then.
> There are more current links on the internet about this subject. Most are for 
> 8.X releases.
> 
> 2. If your running 8.2-RELEASE or 9.1-RELEASE all you need to add is "options 
> vimage" statement to your kernel source and recompile.
> 
> 3. There are 2 networking methods available for creating vnet/vimage jail 
> networks, if_bridge/epair and netgraph. The if_bridge/epair method is far 
> simpler to config and use then the netgraph method.
> 
> 4. There are 2 methods of jail setup, the rc.d method where your jail 
> definition parameters go into the hosts rc.conf and the jail(8) method where 
> you can place each jails definition parameter in separate files.
> 
> 5. There are two very important show stopper PRs on vimage,
> 164763 memory leak and 149050 the rc.d keyword "nojail" problem.
> Vimage is a very long way from prime time usage, thats why it's labeled as 
> highly experimental. Host system freezes and page faults are common.
> 
> 6. When it comes to running a firewall in a vnet/vimage jail your limited to 
> IPFW and it has limitations. Dummynet and in kernel NAT cause system freezes. 
> IPFILTER causes page fault at boot time. PF will run on the host but not run 
> in the vnet/vimage jail. Here are a bunch of PRs on vimage firewall problems, 
> 143621, 176092, 161094, 176992, 143808, 148155, 165252, 178480, 178482
> 
> 
> Check out these links
> 
> http://druidbsd.sourceforge.net/vimage.shtml
> http://devinteske.com/vimage-jails-on-freebsd-8
> http://lists.freebsd.org/pipermail/freebsd-virtualization/2011-September/000747.html
> 
> http://bsdbased.com/2009/12/06/freebsd-8-vimage-epair-howto
> http://zewaren.net/site/?q=node/78
> 
> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Thanks so much, really interesting and good links but I can't again accomplish 
my task - I followed 
http://bsdbased.com/2009/12/06/freebsd-8-vimage-epair-howto as a base tutorial 
- 


I would like simulate more client for my PC using this technology, and that's 
my topology:

1 - Two epairs created 
2 - Two jail created
3 - Assign one intf for jail
4 - Add the real interface to a bridge where I put all the interfaces

---
JAIL1
0b
---

---
JAIL2  
1b
---

---
HOST
0a
1a
em0 --> REAL
---

Where {0,1}a is the first pair and {0,1}b is the second and em0 is my real 
interface (it has an IP address), then I got to the problem, I tried 
to :

jexec 2 dhclient epair1b  

And I can see the DHCP packet with the correct MAC address going out, the 
server reply (I have a sniffer pc) but the transaction does not end 
successfully, what is really strange is that if I attach tcpdump on em0 I can 
NOT see the answer server sends while when I try

dhclient em0 

I can see the packet going in and out and the DHCP transaction finish 
successfully. Do you have any idea about how can I accomplish my 
target ? Maybe I am using the wrong technology ?

I would not surprised if I make a error on my configuration but what really 
interest me is if I CAN do that using jail.

Thanks a lot, and in advance ! :-)

Pietro.
> 


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


VIMAGE

2013-05-30 Thread Pietro Paolini
Hello all,

I am a new bye on the FreeBSD and I am looking at the VIMAGE features 
experiencing some problems.
I added the options :
VIMAGE
if_bridge

and I removed
STCP

then I recompiled my kernel and install it.

After that, following this tutorial 
http://imunes.tel.fer.hr/virtnet/eurobsdcon07_tutorial.pdf I tried the 
"Exercise 2" which consist on 
the following commands:

vimage -c n1
vimage -c n2
ngctl mkpeer efface ether ether
ngctl mkpeer efface ether ether
ngctl mkpeer em0: bridge lower link0
ngctl name em0:lower bridge0
ngctl connect em0: bridge0: upper link1
ngctl connect ngeth0: bridge0: ether link2
ngctl connect ngeth1: bridge0: ether link3
vimage -i n1 ngeth0 e0

But my virtual interface on the n1 vimage does not receive any packet from the 
external network while I can see the packet go out from it.

For instance using DHCP, e0 on n1 sends DHCP packets but it does not receive 
the answers (which are send, I verified it from wireshark), in adding
the ARP request for his IP address (if I try to add it statically) are not 
received then it can not answer.

At the end of the line the question is: how can I make this "virtual network" 
and the external real network be able to communicate ?

Thanks in advance.
Pietro.




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