Facebook   Twitter    e-mail newsletter    YouTube    RSS Feed    Android App    iPhone and iPad App     BlackBerry App    


Results 1 to 6 of 6

Thread: Access Modem GUI from Router Network

  1. #1
    Senior Member
    Join Date
    Nov 2005
    Location
    Johannesburg
    Posts
    189

    Default Access Modem GUI from Router Network

    Hi

    I'm trying to access my Modem GUI from my Linksys Router network with no success.

    Please assist. I've read about the option of running the cable from the WAN to LAN Port 1 and Modem then plugged into a LAN port 2, but someone said that is not only waisting ports but also a huge security risk?

    I've tried the following but when I access 192.168.2.250 or 192.168.2.50 I go to the Linksys GUI.

    http://www.dd-wrt.com/phpBB2/viewtopic.php?p=427684
    #Firewall Script:
    iptables -t nat -I POSTROUTING -o `nvram get wan_ifname` -j MASQUERADE

    #Startup Script:
    ifconfig `nvram get wan_ifname`:0 192.168.2.50 netmask 255.255.0.0

    as well as
    http://www.dslreports.com/forum/r204...through-router
    #Startup Script:
    ifconfig vlan1 192.168.2.250

    #Firewall Script:
    iptables -A forwarding_rule -d 192.168.2.50 -j ACCEPT
    iptables -t nat -A POSTROUTING -d 192.168.2.50 -j MASQUERADE

    My Setup is as follow:
    Huawei Modem: Bridged
    IP: 192.168.2.50
    Sub Net: 255.255.0.0

    Linksys Router: WRT54-GL running DD-Wrt
    IP: 192.168.2.1
    Sub Net: 255.255.255.0



    Thanks

  2. #2

    Default

    Quote Originally Posted by swazz99jhb View Post
    also a huge security risk?
    Nah, should be safe.

    Remember PPPoE does not use IP (its an Ethernet MAC layer protocol), it only transports IP.
    Still here ... FTL drives offline

  3. #3
    Super Grandmaster
    Join Date
    Feb 2009
    Location
    Stellenbosch
    Posts
    7,330
    Blog Entries
    1

    Default

    Change the subnet of your modem to like:
    IP address = 192.168.1.50
    Subnet mask = 255.255.255.0

    Your Linksys modem should then also have an IP address in that subnet on its LAN port. eg:
    IP address = 192.168.1.100
    Subnet mask = 255.255.255.0

    By doing that, your Linksys router should automatically NAT (masquerade) the traffic going to the modem.

  4. #4
    Senior Member
    Join Date
    Nov 2005
    Location
    Johannesburg
    Posts
    189

    Default

    Thanks will give that a shot later tonight.

  5. #5
    Senior Member
    Join Date
    Nov 2005
    Location
    Johannesburg
    Posts
    189

    Default

    @Pada

    Hey it didn't work.

    Doesn't the modem being in bridged mode affect this. I don't really understand vlans, but isn't the eth0 and wlan0 on different vlans and thus restricting the access?

    This how ever was successful:

    http://www.dd-wrt.com/wiki/index.php...urationhttp://

    Chose 192.168.1.20 as my "new" gui IP.

    Modem : 192.168.1.50
    Subnet: 255.255.255.0

    Router: 192.168.2.1
    Subnet:255.255.255.0

    ifconfig `nvram get wan_ifname`:0 192.168.1.20 netmask 255.255.255.0

    I can now get to the GUI via 192.168.1.50

    Thanks.
    Last edited by swazz99jhb; 23-07-2012 at 07:14 PM. Reason: Update

  6. #6
    Super Grandmaster
    Join Date
    Feb 2009
    Location
    Stellenbosch
    Posts
    7,330
    Blog Entries
    1

    Default

    The LAN & WAN ports are usually in different VLAN's.
    When you select to bridge them, they create a bridge interface that links the 2 VLAN's to each other.

    VLAN's could be quite tricky. I've never had proper network training (besides like basic IPv4 & MikroTik courses), and I still struggle with VLAN's.

    I forgot to tell you that you might need to add a static route on your modem for the 192.168.2.x subnet.
    Seeing that your router's WAN IP is 192.168.1.20, the static route on the modem would be as follow:
    IP address: 192.168.2.0
    Subnet mask: 255.255.255.0
    Gateway: 192.168.1.20

    This way it won't be necessary for your Linksys router to NAT.

    I'm running a Buffalo router (LAN @ 192.168.11.1, WAN @ 10.0.0.3) that is connected to a Telkom 5100 ADSL modem (bridged LAN @ 10.0.0.2) and I haven't even bridged anything, besides selecting PPPoE Relaying on my router
    If you're selecting a PPPoE account on the WAN interface on your Linksys router, then you'll have to run a startup script to add a WAN IP address in the 192.168.1.x subnet - or at least this was what I had to do when I dialed my PPPoE accounts from my router - which I saw you did too with
    Code:
    ifconfig `nvram get wan_ifname`:0 192.168.1.20 netmask 255.255.250

Similar Threads

  1. Connecting a Router(With VPN) to a Modem Router to access internet.
    By splinter_watsup in forum Networking and Security
    Replies: 0
    Last Post: 21-12-2011, 12:33 PM
  2. VPN Access : 3G USB modem vs 3G Router?
    By CeeBee in forum Mobile Broadband
    Replies: 3
    Last Post: 07-09-2011, 09:08 AM
  3. Using ADSL router as access point for iBurst modem ?
    By StoneCold in forum iBurst Wireless and iCall
    Replies: 13
    Last Post: 03-02-2011, 08:41 AM
  4. Using a Neoflex Router as a Modem and connection a Router as the access point?
    By splinter_watsup in forum Neotel NeoConnect, NeoFlex and NeoBroadband
    Replies: 6
    Last Post: 27-07-2010, 12:17 PM
  5. How to access the web gui of a modem/router behind an IPCop
    By thisgeek in forum Software and Web Development
    Replies: 0
    Last Post: 13-04-2008, 02:37 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •