From: daniel <danieljay@wa...> - 2003-08-06 17:05:16
My modem is ethernet, no usb.
I take the iface where it is connected up, without address.
I take up a tun/tap iface like tap0 up, without address.
and I create a bridge enters both.
like this :
#> brctl addbr br1
#> ifconfig eth0 0.0.0.0 promisc up # -> modem
#> ifconfig tap1 0.0.0.0 promisc up
#> ifconfig tap2 192.168.2.2 netmask 255.255.255.0 up
#> ifconfig br1 multicast up
#> brctl stp br1 on
#> brctl setfd br1 1
#> brctl sethello br1 1
#> brctl addif br1 eth0
#> brctl addif br1 tap1
#> route add default gw 192.168.2.1 tap2
#> uml-linux ...
I do not believe to need here an hardware access.
Perhaps this is not a good solution.
My objective is to separate the host from internet.
> Message: 8
> From: Daniel Heemann <daniel.heemann@...>
> Reply-To: daniel.heemann@...
> To: user-mode-linux-user@...
> Subject: Re: [uml-user] masquerading inside uml -> Tim Head
> Date: Tue, 5 Aug 2003 19:48:44 +0200
> On Tuesday 05 August 2003 19:13, daniel wrote:
> > Yes I'm sure I have a ppp device :
> > I use rp-pppoe inside the uml and it works with no errors (I receive an
> > ip from my isp and ifconfig say ppp0 is up).
> > ifconfig on the host see neither ppp(x).
> > And I can ping an ip from www (like 184.108.40.206) inside the uml but not
> > from the host.
> > tcpdump (on iface of the ethernet card where the modem is connected) see
> > the output packet (with the lan address (tapx) of the host in source),
> > but no response
> > -> therefore, the forwarding is working
> > -> i must use masquerading, snat, or ...
> perhaps I missed something but afaik access to physical hardware inside uml
> is very restricted and you need to access at least the nic which is
> connected to the dsl-modem - how can you access it?
Get latest updates about Open Source Projects, Conferences and News.