I've got three ubuntu maverick machines and an access point. I want to be able to set up the following scenario:
The setup is as follows:
- 192.168.0.1 is an access point
- 192.168.0.2 is a wireless connection on a laptop to the access point
- 192.168.0.3 is a wireless connection on computer 2 to the access point
- 192.168.0.4 is a wired connection on computer 1 to computer 2
- 192.168.0.5 is a wired connection on computer 2 to computer 1
- 22.214.171.124 is a wired connection on computer 2 to the internet
- 126.96.36.199 is an internet gateway
In this picture, the things I want to be able to do are:
- ssh from the laptop to computer 1 (without having to ssh to computer 2 first)
- access the internet from computer 1 (via computer 2, presumably)
I thought I could bridge the wired and wireless connections on computer 2 so all the 192.168.0.* interfaces would appear to be on the same subnet and would all appear to be directly accessible with each other, but I've been playing with brctl (bridge-utils) and /etc/network/interfaces all day and haven't gotten it working.
As for accessing the internet from computer 1 via computer 2, I'm pretty sure I can set up NAT and IP forwarding on computer 2, as per these instructions (I've done it before.), but I've gotten stumped on the bridge and haven't ventured any further.