Hi,
   Sorry, I misread your email. And I mistyped that iptables line :(

   If you only need to browse the internet, you can install a proxy server 
called "squid" in the head node. It's easy to install.

    Then you should be able to browse the internet configuring your browser or 
most command line clients setting this environment variables:

http_proxy=http://your_master_IP:3128/
ftp_proxy=http://your_master_IP:3128/

    If you need everything or you cant use a proxy , you will have to try some 
iptables rules, but I'm not sure what are the exact ones. 

Try this one:

iptables  -t nat -I POSTROUTING -o eth0 -j MASQUERADE

If it doesn't work, send me the output of this commands:

ifconfig
iptables -L -n
iptables -L -n -t nat

And I may be able to answer you with a list of iptables rules. 


 -- Diego

On Saturday 28 June 2008 12:45:16 mohamed hosny wrote:
> hello...thanks for your help
> this command:
>  iptables -I FORWARD -s eth0 -j ACCEPT
> give me this error:
> iptables v1.3.8: host/network `eth0' not found
> Try `iptables -h' or 'iptables --help' for more information.
>
> the other 2 commands i did them before with no errors but they don't solve
> the problem....
>
> so what i have to do next?
>
> --- On Sat, 6/28/08, Diego M. Vadell <[EMAIL PROTECTED]> wrote:
> > From: Diego M. Vadell <[EMAIL PROTECTED]>
> > Subject: Re: [Oscar-users] Internet connection on client node
> > To: oscar-users@lists.sourceforge.net, [EMAIL PROTECTED]
> > Date: Saturday, June 28, 2008, 6:08 PM
> > Hi,
> >     Maybe you need to enable NAT? Try running in your
> > master:
> >
> > iptables -I FORWARD -s eth0 -j ACCEPT
> > iptables -t nat -I POSTROUTING -o eth1 -j MASQUERADE
> > echo 1 > /proc/sys/net/ipv4/ip_forward
> >
> > And see if it works.
> >
> > HTH
> >  -- Diego.
> >
> > On Saturday 28 June 2008 11:36:12 mohamed hosny wrote:
> > > i have a router and both the master node and the
> >
> > client are connected to
> >
> > > it...still no internet connection on the client node..
> >
> > so is there a way to
> >
> > > forward the internet connection from the master node
> >
> > to the client node?
> >
> > > --- On Sat, 6/28/08, Michael Edwards
> >
> > <[EMAIL PROTECTED]> wrote:
> > > > From: Michael Edwards <[EMAIL PROTECTED]>
> > > > Subject: Re: [Oscar-users] Internet connection on
> >
> > client node
> >
> > > > To: [EMAIL PROTECTED],
> >
> > oscar-users@lists.sourceforge.net
> >
> > > > Date: Saturday, June 28, 2008, 5:21 PM
> > > > You can probably hook your external internet
> >
> > connection into
> >
> > > > your switch and
> > > > it will probably "just work".  It
> >
> > depends a bit
> >
> > > > on your switch though.
> > > >
> > > >
> > > > On Sat, Jun 28, 2008 at 10:01 AM, mohamed hosny
> > > > <[EMAIL PROTECTED]>
> > > >
> > > > wrote:
> > > > > Hello..
> > > > >
> > > > > i have some problems in my cluster..i hope
> >
> > some one
> >
> > > > help me..i am searching
> > > >
> > > > > the web for more than 4 days with no results
> >
> > at all..
> >
> > > > > i have a cluster of 2 nodes...the head node
> >
> > and a
> >
> > > > client node..
> > > >
> > > > > the head node has only one ethernet card
> >
> > which is
> >
> > > > eth0..
> > > >
> > > > > the problem now that i can't have
> >
> > internet on the
> >
> > > > client node as the client
> > > >
> > > > > node have a default gate way which is the ip
> >
> > of the
> >
> > > > master node so it
> > > >
> > > > > doesn't see the outer world..
> > > > >
> > > > > i tried to tunnel a connection with ssh but
> >
> > i failed..
> >
> > > > > i hope any one can help me find a solution
> >
> > to have
> >
> > > > internet on the client
> > > >
> > > > > nodes..
> > > > >
> > > > > also i need a way to add GUI to the client
> >
> > nodes...if
> >
> > > > there is a manual way
> > > >
> > > > > to add kde gui or gnome or any other
> >
> > interface so that
> >
> > > > any user can use a
> > > >
> > > > > client machine with no difficulties..
> > > > >
> > > > > thank you in advance..
> >
> > -------------------------------------------------------------------------
> >
> > > > > Check out the new SourceForge.net
> >
> > Marketplace.
> >
> > > > > It's the best place to buy or sell
> >
> > services for
> >
> > > > > just about anything Open Source.
> >
> > http://sourceforge.net/services/buy/index.php
> >
> > _______________________________________________
> >
> > > > > Oscar-users mailing list
> > > > > Oscar-users@lists.sourceforge.net
> >
> > https://lists.sourceforge.net/lists/listinfo/oscar-users
> >
> >
> > -------------------------------------------------------------------------
> >
> > > Check out the new SourceForge.net Marketplace.
> > > It's the best place to buy or sell services for
> > > just about anything Open Source.
> > > http://sourceforge.net/services/buy/index.php
> > > _______________________________________________
> > > Oscar-users mailing list
> > > Oscar-users@lists.sourceforge.net
> >
> > https://lists.sourceforge.net/lists/listinfo/oscar-users



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Oscar-users mailing list
Oscar-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oscar-users

Reply via email to