Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (4) </ 1 2 [3] 4 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Gateway easily?< Next Oldest | Next Newest >
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: Nov. 06 2007,17:53 QUOTE

I don't think the bridge system works that way (don't think it has it's own ip); could be wrong though

--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
Zucca Offline





Group: Members
Posts: 524
Joined: Feb. 2006
Posted: Nov. 06 2007,17:54 QUOTE

I belive this won't work but it's worth trying...

--------------
Do you have it? - http://dy.fi/mak
Back to top
Profile PM WEB ICQ MSN 
Zucca Offline





Group: Members
Posts: 524
Joined: Feb. 2006
Posted: Nov. 06 2007,18:13 QUOTE

I did this on my computer0:
Code Sample
brctl addbr bridge0
ifconfig eth0 0.0.0.0
ifconfig wlan0 0.0.0.0.
brctl addif bridge0 eth0
brctl addif bridge0 wlan0
dhcpcd bridge0
ifconfig bridge0:1 192.168.0.101

And this on my computer1:
Code Sample
ifconfig eth0 192.168.0.100
route add default gw 192.168.0.101


Well it didn't worked. At least I still have connection to this computer (computer0).  :D

Ok. It seems I have to learn how to use iptables... Or find a script to do that for me...

But if anyone has any suggestions... I'm happy to test. :)


--------------
Do you have it? - http://dy.fi/mak
Back to top
Profile PM WEB ICQ MSN 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: Nov. 06 2007,18:41 QUOTE

Well, to get you a net connection with nat:

iptables -P FORWARD ACCEPT
iptables -A OUTPUT -o eth0 -j ACCEPT
iptables -A INPUT -i eth0 -j ACCEPT
iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE


--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Nov. 06 2007,19:16 QUOTE

Just wondering if you have the correct hardware setup (couldn't really tell from your diagram): are you using a crossover cable or some hub/repeater/switch on your wired connection?  I think this is required for using a NAT, not a bridge though.  But I've only used NATs... Here's a link that might be helpful: http://www.linux-foundation.org/en/Net:Bridge
Back to top
Profile PM 
19 replies since Nov. 04 2007,20:35 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (4) </ 1 2 [3] 4 >/
reply to topic new topic new poll
Quick Reply: Gateway easily?

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code