1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to disable WLAN <-> LAN NATing?

Discussion in 'Sveasoft Firmware' started by knight14th, Jun 28, 2005.

  1. knight14th

    knight14th Network Guru Member

    As I noticed, my WRT54G (Alchemy 1.0) is NATing WLAN <-> LAN connections although they are in the same subnet. Turning my WRT into "router" mode this NATing is turned off but unfortunately no packets are sent through my pppoe dsl connection. Turning back into gateway mode, internet works fine but there is NATing again.

    Is there a way to disable NATing between WLAN and LAN while running the router in "gateway" mode?

    Thanks
     
  2. 4Access

    4Access Network Guru Member

    WAN = Wide Area Network (Internet port)
    WLAN = Wireless Local Area Network

    I assume you mean WAN -> LAN

    Or are you running your WRT in client mode??

    What exactly are you trying to accomplish...
     
  3. knight14th

    knight14th Network Guru Member

    No, I mean WLAN (wireless) <--> LAN.

    My WRT is connected to a DSL-modem using the WAN port. I use pppoe to connect to my ISP and use therefore NAT on the WAN interface, so my local clients (192.168.0.0/24) can connect to the internet.

    But also the WLAN and LAN seems to be NATed if a wirless client trys to connect to a LAN client (both in 192.168.0.0/24). If I try to connect from my Notebook (192.168.0.12) over WLAN to my desktop (192.168.0.11, connected to a LAN-port of the WRT) i can see in logfiles of the sshd, that this connection comes from my WRT (192.168.0.1) and not from my notebook. The same if connectig desktop to notebook (LAN -> WLAN). So the traffic between WLAN (not WAN *g*) and LAN ist NATed.

    How to disable this?

    Running the WRT in "router"-mode this intern NATing is disabled and the sshd logfile shows correct source (192.168.0.12). But in this mode the NAT on the WAN (Internet port) is disabled an my clients may not connect to internet.
     
  4. 4Access

    4Access Network Guru Member

    Ahh... I should have guessed. Go to the Administration page and disable the Loopback option. You can also click on the "More..." link on the Administration page for a brief explanation of the Loopback feature.
     
  5. redlynx

    redlynx Network Guru Member

    can I control my WRT54G NAT? i want a specific address or a network address to skip the NATing process...how can i do that?
    for exemple i want from my LAN network (192.168.1.x) to access other network (169.254.x.y), but everything that is NOT on my LAN goes to my ISP default gw and of course, dropped.
     
  6. knight14th

    knight14th Network Guru Member

    To route between two networks you will have to setup some special routes.
     
  7. redlynx

    redlynx Network Guru Member

    to route i need a router... :wink:
    can you plese be more specific...
     
  8. knight14th

    knight14th Network Guru Member

    Sorry, but isn't your WRT such a router?
     
  9. redlynx

    redlynx Network Guru Member

    so the question comes again...can i control my NAT?
    if so, how?
     
  10. knight14th

    knight14th Network Guru Member

    Just setup a route from your lan to the router of the other network. You also have to setup a route back to you LAN on the other Router. Otherweise the packets are sent but don't know a way back to your lan
     
  11. redlynx

    redlynx Network Guru Member

    tried this with [route] command but not working...
     
  12. knight14th

    knight14th Network Guru Member

    Of course it will not work. As I said before packeges from and to 192.168.0.0/16 and 169.254.0.0/16 will not be routed through internet-routers. You will have to setup a tunnel (maybe pptp) and all the packages will than be routet through this tunnel to the other network.

    One router should be the server and one should call the other end as client. Then setup the routes on both routers and thats is.
     
  13. redlynx

    redlynx Network Guru Member

    who said that i want to route them on the internet?

    LAN1 --- [linksys] --- LAN2

    wrt is set up as a gateway and all the traffic that is not part of 192.168.1.x will go to its default gw...

    i want to deNAT a specific network address...is this possible?
     
  14. knight14th

    knight14th Network Guru Member

    How are the networks connected to your wrt?

    Is your 192-net connected to the 4port switch and your 169net to the WAN-port or are both connected to the switch?

    You have to provide a little bit more informations![/i]
     
  15. redlynx

    redlynx Network Guru Member

    using a simple PC:
    on the same cable that comes from my ISP i can browse the internet using pppoe (real ip addr) and the metropolitan network (169-net) as well.

    using a linksys WRT54G router:
    the same cable from my ISP goes into the WAN port and from my 4port switch, a patch cord goes to my PC.
    with the router set as a gateway anything that is not on my local 192-net is routed through the default GW.

    and yes, you are right, 192-net is connected to the 4port switch and 169-net to the WAN port.
     

Share This Page