Hi,

I have a set up where I would like to be able to connect through the wireless port and route data through to the eth0 port. Where I have the following set up:

/etc/network/interfaces

# The loopback interface
#
auto lo
iface lo inet loopback

#
# Wired interfaces
#

auto eth0
iface eth0 inet dhcp
#iface eth1 inet dhcp

#
# Wireless interfaces
#

allow-hotplug wlan0
iface wlan0 inet static
        address 192.168.10.100
        netmask 255.255.255.0
    wireless-mode ad-hoc
    wireless-essid dock-amp

/etc/sysctl.conf

# Uncomment the next line to enable packet forwarding for IPv4
net.ipv4.ip_forward=1

/etc/udhcpd.conf
#start address
start    192.168.10.101

#end address
end 192.168.10.230

#interface to listen on
interface wlan0

#max number of eases
max_leases 5

I am trying to user ip route add to add NAT for data passing between these two interfaces.

Here is the command that I cannot get to work

ip route add nat 192.168.2.207 via 192.168.10.100

The above fails with

Invalid Argument

Has anyone got this type of routing to work and if so can you help please.

Regards,
Stuart