I want to siphon the Internet access from my Ubuntu 12.04 LTS laptop to my old Windows ME desktop for learning purposes. I have 2 Ethernet cables and a switch with no access to configure the wireless modem/router.
Can anybody tell me where I went wrong?
I have no access to configure the wireless router/modem.
I have a 5 port switch.
I have Ubuntu on a laptop with a wireless Internet connection on wlan0 at 192.168.0.13 (dhcp). The laptop also is hooked up to a switch via Ethernet cable on eth0 at 192.168.4.2 (static).
I have Windows ME also hooked up to the switch via Ethernet cable at 192.168.4.1 (static).
I tried to follow the Debian bridging manual (https://wiki.debian.org/BridgeNetworkConnections). But it was hard for me to follow.
Interface Configuration File
My failure, step by step:
Step 1 (successful)
user$ brctl addbr br0
Step 2 (error: can't add wlan0 to bridge br0: Operation not supported)
user$ brctl addif br0 eth0 wlan0
Step 3 (successfully added these lines to /etc/network/interfaces)
pre-up iwconfig wlan0 essid $YOUR_ESSID bridge_hw $MAC_ADDRESS_OF_YOUR_WIRELESS_CARD
Step 4 (successful)
user$ ebtables -t nat -A POSTROUTING -o wlan0 -j snat --to-src *$br0_MAC-ADDR* --snat-arp --snat-target ACCEPT
Step 5 (successful)
user$ ebtables -t nat -A PREROUTING -p IPv4 -i wlan0 --ip-dst 192.168.0.13 -j dnat --to-dst *$wlan0_MAC-ADDR* --dnat-target ACCEPT
Step 6 (successful)
user$ ebtables -t nat -A PREROUTING -p ARP -i wlan0 --arp-ip-dst 192.168.0.13 -j dnat --to-dst *$wlan0_MAC-ADDR* --dnat-target ACCEPT