Re: [gentoo-user] the user mode linux can't access network..

2006-08-23 Thread fei huang
thanks for helping...the problem has been solved by applying iptable rules on my ppp0 instead of eth0. since ppp0 is the real device that conncts to the Internet.tks again.daniel


Re: [gentoo-user] the user mode linux can't access network..

2006-08-21 Thread fei huang
On 8/21/06, Etaoin Shrdlu [EMAIL PROTECTED] wrote:
On Monday 21 August 2006 08:38, fei huang wrote: did I miss something? or the guide is just incomplete?I see you are directly connecting the real host to the virtual host usingtuntap (eg, you don't use uml_switch).
I would like the most direct and easy way to access the network, seems the uml_switch needs just a lot more steps to set up the network... not sure though.
You probably need to enable forwarding (and possibly masquerading) on thereal box:iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADEecho 1  /proc/sys/net/ipv4/ip_forwardThe guide DOES mention this, in the section using an existing network.
yep, that's why I get so frustrated, I did exactly the same as what the guide instructs..any other posibilities that may cause the problem? 
HTH--gentoo-user@gentoo.org mailing listthank you so much..daniel


Re: [gentoo-user] the user mode linux can't access network..

2006-08-21 Thread fei huang
On 8/21/06, Etaoin Shrdlu [EMAIL PROTECTED] wrote:
On Monday 21 August 2006 11:24, fei huang wrote: yep, that's why I get so frustrated, I did exactly the same as what the guide instructs.. any other posibilities that may cause the problem?
Ok, let's see: you say that your eth0 (which I guess is the interfaceconnected to the ADSL and thus to the Internet) has ip address192.168.0.1. Then, you use this command to start uml:
UML linux ubd0=root_fs ubd1=swap_fs eth0=tuntap,,,192.168.0.1this means that the *host's* tun/tap interface gets ip address192.168.0.1
 as well. So, the host ends up with its two interfaces havingthe same ip address (do ip addr or ifconfig when uml is running toconfirm this) .yep, I did notice this problem, and tried to change the tun/tap interface to 
192.168.0.3,I guess this must be the same network with eth0 of my host system,, but no luck...
If the above is true, try using different addresses for the tun/tap-umlnetwork, for example from the 10.0.0.0 pool.--I'll try it out... hope this works. thanks. 
gentoo-user@gentoo.org
 mailing listregards. daniel.


Re: [gentoo-user] the user mode linux can't access network..

2006-08-21 Thread fei huang
still no luck... I tried to build everything in kernel, and later build additional iptable_filter as module, add iptable to my default run level,, neither of them works.. I found there is a warning message after emerge iptables says: ip forwarding is not included in iptables any more. what does it mean? is that related with the issue?
any hints ?... thanksdaniel


Re: [gentoo-user] the user mode linux can't access network..

2006-08-21 Thread Etaoin Shrdlu
On Monday 21 August 2006 16:22, fei huang wrote:

 still no luck... I tried to build everything in kernel, and later
 build additional iptable_filter as module, add iptable to my default
 run level,, neither of them works..

I'd try first with iptables filters *disabled*, to make sure it's not a 
firewall issue. Once it works, enable packet filtering (if you need it). 
But until you are sure it works, make sure nothing prevents traffic 
flow, so disable iptables filters.

 I found there is a warning message after emerge iptables says: ip
 forwarding is not included in iptables any more. what does it mean? is
 that related with the issue?

It means that, if you want ip forwarding, you have to enable it manually 
using the command

echo 1  /proc/sys/net/ipv4/ip_forward

To verify that forwarding is working, simply do

cat /proc/sys/net/ipv4/ip_forward

and it should print 1.
Keep in mind that if you reboot, you have to re-enable forwarding if you 
want it again.

Finally, run a network analyzer like wireshark and see for yourself 
what's happening. I'd look at ARP packets first: make sure ARP is 
working correctly.
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] the user mode linux can't access network..

2006-08-21 Thread fei huang
On 8/21/06, Etaoin Shrdlu [EMAIL PROTECTED] wrote:
On Monday 21 August 2006 16:22, fei huang wrote: still no luck... I tried to build everything in kernel, and later build additional iptable_filter as module, add iptable to my default run level,, neither of them works..
I'd try first with iptables filters *disabled*, to make sure it's not afirewall issue. Once it works, enable packet filtering (if you need it).But until you are sure it works, make sure nothing prevents traffic
flow, so disable iptables filters.mm, I disabled it from auto loading. 
 I found there is a warning message after emerge iptables says: ip forwarding is not included in iptables any more. what does it mean? is that related with the issue?It means that, if you want ip forwarding, you have to enable it manually
using the commandecho 1  /proc/sys/net/ipv4/ip_forwardTo verify that forwarding is working, simply docat /proc/sys/net/ipv4/ip_forwardand it should print 1.Keep in mind that if you reboot, you have to re-enable forwarding if you
want it again.gentoo might do that trick for me, everytime I check that value, it shows 1. 
Finally, run a network analyzer like wireshark and see for yourselfwhat's happening. I'd look at ARP packets first: make sure ARP isworking correctly.--gentoo-user@gentoo.org
 mailing listuh, that's a good idea, I'll emege wireshark and see what's happening, the most annoying thing is that there's no log for troubleshooting, I wonder why iptable never write anything to syslog? that's wierd.
regardsdaniel


Re: [gentoo-user] the user mode linux can't access network..

2006-08-21 Thread Etaoin Shrdlu
On Monday 21 August 2006 17:11, fei huang wrote:

 uh, that's a good idea, I'll emege wireshark and see what's happening,
 the most annoying thing is that there's no log for troubleshooting, I
 wonder why iptable never write anything to syslog?  that's wierd.

It will, if you tell it. Look at the LOG/ULOG targets.
-- 
gentoo-user@gentoo.org mailing list