List Info

Thread: Hoow to add a route




Hoow to add a route
country flaguser name
United States
2008-02-13 17:27:05
Hi All,
I have a development Linux box I want to work on using my
wireless setup.  I would like to ssh into the box.
My LEAF Bering 3.0 setup is as follows
 
eth0 net ISP
eth1 Loc 192.168.1.x /24
eth2 DMZ (unused currently)
ath0 wls 192.168.2.x /24 Wireless wifi0
 
In my interfaces file under ath0 I have specified:
up ip route add 192.168.1.0/24 via 192.168.2.0 dev ath0
 
In Shorewall rules I have 
ACCEPT wls loc tcp 22
 
>From my wireless laptop I am unable to connect via SSH
(it times out).  I gues I probably have multiple issues.
When I do an ip route show I don't see the new route listed
after a reboot.  I did save the config before reboot and the
interfaces and shorewall rules are still listed after
reboot.  I guess I probably have a simple syntax error but
I've worked on this for a while and not sure where to go
next.  BTW, I guess if I want to run a really tight firewall
rule I should DNAT only to the exact host?  DNAT wls
loc:192.168.1.x tcp 22 but for now I would be happy just to
get it to work.  Many thanks in advance for your help! 
 
-Jeremy
------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
------------------------------------------------------------
------------
leaf-user mailing list: leaf-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user

Support Request -- http://leaf-project.org/


Re: Hoow to add a route
user name
2008-02-14 03:05:06
Jeremy,

Not sure what you're trying to accomplish. Both the
192.168.x networks 
are local to the LEAF box, so there's no need to setup
routes on the box 
itself. If you like to set a route between the local and the
wireless 
segments you should have these routes setup at the
individual clients. 
Since this same box also appears to act as your default
router this 
route already exists.

Also, the "via" address should be a node, not a
network.

You should probably look into your ssh setup which will
likely contain a 
restriction on allowed addresses.

Gordon

Jeremy Tourville wrote:
> Hi All,
> I have a development Linux box I want to work on using
my wireless setup.  I would like to ssh into the box.
> My LEAF Bering 3.0 setup is as follows
>  
> eth0 net ISP
> eth1 Loc 192.168.1.x /24
> eth2 DMZ (unused currently)
> ath0 wls 192.168.2.x /24 Wireless wifi0
>  
> In my interfaces file under ath0 I have specified:
> up ip route add 192.168.1.0/24 via 192.168.2.0 dev
ath0
>  
> In Shorewall rules I have 
> ACCEPT wls loc tcp 22
>  
>>From my wireless laptop I am unable to connect via
SSH (it times out).  I gues I probably have multiple
issues.
> When I do an ip route show I don't see the new route
listed after a reboot.  I did save the config before reboot
and the interfaces and shorewall rules are still listed
after reboot.  I guess I probably have a simple syntax error
but I've worked on this for a while and not sure where to go
next.  BTW, I guess if I want to run a really tight firewall
rule I should DNAT only to the exact host?  DNAT wls
loc:192.168.1.x tcp 22 but for now I would be happy just to
get it to work.  Many thanks in advance for your help! 
>  
> -Jeremy
>
------------------------------------------------------------
-------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>
------------------------------------------------------------
------------
> leaf-user mailing list: leaf-userlists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/leaf-user

> Support Request -- http://leaf-project.org/


-- 


Gordon Bos
Q-RY Solutions
Martinus Nijhofflaan 2
2624 ES  Delft
The Netherlands
Tel: +31 (0)15 256 4035
Fax: +31 (0)15 256 4074

Q-RY Solutions is distributeur van Pervasive Software en
ConnecTUX
software, en draagt zorg voor consultancy, levering,
ondersteuning,
installatie en training.

------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
------------------------------------------------------------
------------
leaf-user mailing list: leaf-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user

Support Request -- http://leaf-project.org/


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )