|
Answer» I have a home network (which I administrate), and it's layout (what you need to know) is as such (the network is actually larger):
Code: [Select]192.168.0.1 (gateway) |-192.168.0.157 (hpDesktop) |-192.168.0.18 (cWindowsWLAN) '-192.168.0.250 (Linux) I am moving the "cWindowsWLAN" computer to my room. The problem is, the wireless signal is not strong enough to reach my room (the WLAN adapter on the Linux box is in the hallway with a very long USB cable). I will also sometime have a third computer there, so I grabbed a spare router we had in the house.
I am trying to get the network set up so it WOULD be like
Code: [Select]192.168.0.1 (gateway) |-192.168.0.157 (hpDesktop) '-192.168.0.250 (Linux) '-192.168.0.100 (router) |-192.168.0.10 (cWindowsLAN) '-192.168.0.? (NEW computer)
So I go and set up bridging on the Linux, and it can reach the router and the main network. HOWEVER, the main network does not see the router.
Any other ideas? I need the network to be set up as is in the latter diagram, with the only wireless link between "gateway" and "Linux"
And yes, I have to have those IPs accessable throughout the network(is there an Edit function?)
I just reestablished the bridge with the following commands: (eth0 is LAN, ra0 is WLAN)
Code: [Select]# brctl addbr br0 # brctl addif br0 eth0 # brctl addif br0 ra0 ; ifconfig ra0 0.0.0.0 ; ifconfig eth0 0.0.0.0 ; ifconfig br0 192.168.0.250 ; route add default gw gateway
Pinging targets:
Code: [Select]PING gateway (192.168.0.1) 56(84) bytes of data. 64 bytes from gateway (192.168.0.1): icmp_seq=1 ttl=64 time=4.66 ms ... PING cWindowsWLAN (192.168.0.18) 56(84) bytes of data. 64 bytes from cWindowsWLAN (192.168.0.18): icmp_seq=1 ttl=128 time=64.6 ms ... PING hpDesktop (192.168.0.157) 56(84) bytes of data. 64 bytes from hpDesktop (192.168.0.157): icmp_seq=1 ttl=128 time=3.92 ms ... PING 192.168.0.100 (192.168.0.100) 56(84) bytes of data. 64 bytes from 192.168.0.100: icmp_seq=1 ttl=150 time=0.617 ms (the computer is not moved yet) From hpDesktop:
Code: [Select]Reply from 192.168.0.1: bytes=32 time=9ms TTL=64 ... Reply from 192.168.0.18: bytes=32 time=1ms TTL=128 ... Reply from 192.168.0.250: bytes=32 time=7ms TTL=64 ... Request timed out. (last ping was to 192.168.0.100)
My routing table:
Code: [Select]Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 * 255.255.255.0 U 0 0 0 br0 loopback * 255.0.0.0 U 0 0 0 lo default gateway 0.0.0.0 UG 0 0 0 br0
My iptables (I know, no firewalling, and it seems to have all my port openings...):
Code: [Select]# iptables --list Chain INPUT (policy ACCEPT) TARGET prot opt source destination ACCEPT all -- anywhere loopback/8 ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED ACCEPT all -f anywhere anywhere ACCEPT udp -- anywhere anywhere udp dpt:domain ACCEPT tcp -- anywhere anywhere tcp dpt:domain ACCEPT udp -- anywhere anywhere udp dpt:ssh ACCEPT tcp -- anywhere anywhere tcp dpt:ssh ACCEPT udp -- anywhere anywhere udp dpt:http ACCEPT tcp -- anywhere anywhere tcp dpt:http ACCEPT udp -- anywhere anywhere udp dpt:https ACCEPT tcp -- anywhere anywhere tcp dpt:https ACCEPT udp -- anywhere anywhere udp dpt:ftp ACCEPT tcp -- anywhere anywhere tcp dpt:ftp ACCEPT udp -- anywhere anywhere udp dpt:ftp-data ACCEPT tcp -- anywhere anywhere tcp dpt:ftp-data ACCEPT icmp -- anywhere anywhere icmp echo-reply ACCEPT icmp -- anywhere anywhere icmp destination-unreachable ACCEPT icmp -- anywhere anywhere icmp echo-request ACCEPT icmp -- anywhere anywhere icmp time-exceeded
Chain FORWARD (policy DROP) target prot opt source destination
Chain OUTPUT (policy ACCEPT) target prot opt source destination
(I am thinking the problem is with chain FORWARD, but I do not know how to fix; I haven't messed with iptables myself, except with my open all PORTS script)
Any input on problem or how to fix?
|