Routing problem

Routing problem
 Thu, 1970-01-01 00:00
Bill_guebiz
Posts: 1
Joined: 2007-06-08
I'm a newbie when it comes to linux. I am having a problem with routing. To get broadband internet to my house in MO I installed M0n0wall (as an access point ) on a WARP board mounted on top of a 80ft silo connected to my WISP radio. Then on the roof of my house I have a WARP board running m0n0wall as the client 3.5 miles away.This link is using Ubiquiti Networks SR9 900 Mhz radios and was working fine for the most part. M0n0wall did not have any way to set power and channel width that I could find. So I wanted to try other software. I installed the 5.02 Imedia WARP software in the unit on my roof as my first step into Linux. From my PC I can SSH into the box on the roof as root user and ping to all devices: PC @ 192.168.3.10 House | eth0 @ 192.168.3.1 House roof ath1 @ 192.168.2.2 \ - 3.5 mi \ LAN @ 192.168.2.1 Top of Silo WAN @ 192.168.1.100 (DHCP assigned) | WISP-eth@ 192.168.1.1 Side of Silo NAT My IP @ 12.43.xx.yy I am able to reach DNS server at my ISP this all works. The problem I am having is that from my PC I can only ping the eth0 and ath1. The default gateway on my PC is set to 192.168.3.1. The default route on the roof unit is: 192.168.2.1 Any ideas as to what I am doing wrong or how to fix this? Thanks Bill

 Tue, 2007-06-19 11:41 NAT
pando
Posts: 36
Joined: 2006-12-04

I'm pretty sure you have to masquerade your packets in order for them to pass through wrap.

Try to add a simple masquerade:

wrap ~# iptables -t nat -A POSTROUTING -s 192.168.3.0/24 -o ath1 -j MASQUERADE

or SNAT which is equivalent but used only if ath0 has static ip
wrap ~# iptables -t nat -A POSTROUTING -s 192.168.3.0/24 -o ath1 -j SNAT --to-source 192.168.2.2