Linksys E1200v2 - help on VLAN / iptables with SSH and worki

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
SusKahl
DD-WRT Novice


Joined: 28 Jul 2015
Posts: 25

PostPosted: Wed Jan 24, 2018 20:54    Post subject: Linksys E1200v2 - help on VLAN / iptables with SSH and worki Reply with quote
I cant get:
- VLAN setup that works
- if VLAN Setup needs SSH then SSH setup that works
- And LAN ports that works

I have tried build v24 19529 mini SSH works but not VLAN, and LAN Ports dont get any IP (tried moving the VLAN around)

And v24 build 21061 mega I can move the VLan around to get the LAN ports to get a IP. But SSH dont work so cant set up the VLAN

I just want my E1200 to v2have 2 VLans that share the Internet connection, else than that cant see each other or interact.

Please somebody help me.


Last edited by SusKahl on Thu Jan 25, 2018 14:22; edited 1 time in total
Sponsor
jwh7
DD-WRT Guru


Joined: 25 Oct 2013
Posts: 2670
Location: Indy

PostPosted: Wed Jan 24, 2018 21:49    Post subject: Re: Build for Linksys E1200 that contains following... Reply with quote
SusKahl wrote:
I just want my E1200 to have 2 VLans that share the Internet connection, else than that cant see each other or interact.
v1 or v2? Have you tried the latest k3x build? Seems port forwarding isn't working, but does improve the wireless issues of the SFE+krack builds. For LAN issues, see here.
_________________
# NAT/SFE/CTF: limited speed w/ DD # Repeater issues # DD-WRT info: FAQ, Builds, Types, Modes, Changes, Demo #
OPNsense x64 5050e ITX|DD: DIR-810L, 2*EA6900@1GHz, R6300v1, RT-N66U@663, WNDR4000@533, E1500@353,
WRT54G{Lv1.1,Sv6}@250
|FreshTomato: F7D8302@532|OpenWRT: F9K1119v1, RT-ACRH13, R6220, WNDR3700v4
SusKahl
DD-WRT Novice


Joined: 28 Jul 2015
Posts: 25

PostPosted: Thu Jan 25, 2018 9:31    Post subject: Reply with quote
Its a v2 (sorry forgot that)

I have now tried the dd-wrt.v24-34578_NEWD-2_K3.x_mega-e1200v2.bin the SSH work but LANports dont. also not after changing the VLAN to VLAN2 and aissagn it to bridge.
SusKahl
DD-WRT Novice


Joined: 28 Jul 2015
Posts: 25

PostPosted: Thu Jan 25, 2018 13:11    Post subject: Need help for the VLAN Reply with quote
I got the LANports to work (assign br0 to Interface vlan1)(the trick was to reboot the router after applying the changes)

And the SSH as well (Again Reboot after Applying the changes and a dash of Practice (2-3 attempts))

now I cant get the VLan to work on the LANports. (but it does work on Wireless)

setup primary Wifi an Add Virtual Interface > Save
setup primary Wifi security and for Virtual > Save > Apply Settings

Then I SSH access for the following:
nvram set vlan2ports="4 8*"
nvram set port4vlans="2 18 19"
nvram commit
reboot

made the following changes under Setup > Networking
Create Bridge > Add > Name: br1 > Save > Apply Settings
Network Configuration br1 >
Label: Kaelderen
IP Address: 10.0.0.1
Subnet: 255.255.255.0 > Save
Multiple DHCP Server > Add > br1 - Kaelderen > Save
Assign to Bridge > Add > Assignment 1: br1 - Kælderen Interface: vlan2 > Save
Assign to Bridge > Add > Assignment 2: br1 - Kælderen Interface: wl0.1 > Save > Apply Settings

to "fix" Firewall
Administration > Commands
insert
iptables -I INPUT -i br1 -m state --state NEW -j DROP
iptables -I INPUT -i br1 -p udp --dport 67 -j ACCEPT
iptables -I INPUT -i br1 -p udp --dport 53 -j ACCEPT
iptables -I INPUT -i br1 -p tcp --dport 53 -j ACCEPT
Save Firewall

no mather what LANport I connect the computer into it gets an 192.168.1.XXX IP but do I connect a computer to the virtual wifi I get a 10.0.0.XXX IP

What Am I dooing wrong?
(I dont yet know if the internet works while I haven't connected it to the main access yet, do to avoid trouble with the family Wink )
jwh7
DD-WRT Guru


Joined: 25 Oct 2013
Posts: 2670
Location: Indy

PostPosted: Thu Jan 25, 2018 14:18    Post subject: Re: Need help for the VLAN Reply with quote
Fwiw, after flash on my E1500, my LAN is usually dead; I just reboot and it works again. I recall the E1200v2 is more finicky though.
SusKahl wrote:
no mather what LANport I connect the computer into it gets an 192.168.1.XXX IP but do I connect a computer to the virtual wifi I get a 10.0.0.XXX IP

What Am I doing wrong?
(I dont yet know if the internet works while I haven't connected it to the main access yet, do to avoid trouble with the family Wink )
Change the thread title (via first post's Subject) to something like:
New subject wrote:
Linksys E1200v2 - help on VLAN / iptables with SSH and working LAN ports
...so the VLAN / iptables gurus are more likely to see it.
_________________
# NAT/SFE/CTF: limited speed w/ DD # Repeater issues # DD-WRT info: FAQ, Builds, Types, Modes, Changes, Demo #
OPNsense x64 5050e ITX|DD: DIR-810L, 2*EA6900@1GHz, R6300v1, RT-N66U@663, WNDR4000@533, E1500@353,
WRT54G{Lv1.1,Sv6}@250
|FreshTomato: F7D8302@532|OpenWRT: F9K1119v1, RT-ACRH13, R6220, WNDR3700v4
jpp
DD-WRT Novice


Joined: 26 Sep 2017
Posts: 28

PostPosted: Fri Jan 26, 2018 12:12    Post subject: Re: Build for Linksys E1200 that contains following... Reply with quote
jwh7 wrote:
SusKahl wrote:
I just want my E1200 to have 2 VLans that share the Internet connection, else than that cant see each other or interact.
v1 or v2? Have you tried the latest k3x build? Seems port forwarding isn't working, but does improve the wireless issues of the SFE+krack builds. For LAN issues, see here.


The wireless issues you refer to are the AP Isolation problem or something else? Can you direct me to the thread about it?

Thanks,
JP
SusKahl
DD-WRT Novice


Joined: 28 Jul 2015
Posts: 25

PostPosted: Mon Jan 29, 2018 9:19    Post subject: Reply with quote
Thanks every one for your help. I figured it out for my self. just because the dd-wrt software has vlan menues available for LANports doesn't mean that the hardware is supported by it.
unfortunately my e1200 wasn't on the support list https://www.dd-wrt.com/wiki/index.php/VLAN_Support therefor the VLAN on the ports didnt work. It work fine on wifi.
SusKahl
DD-WRT Novice


Joined: 28 Jul 2015
Posts: 25

PostPosted: Mon Jan 29, 2018 19:49    Post subject: Reply with quote
Fair enough. But I made the same configuration on Wrt320n as on the E1200 and it worked on wrt320n and not on the E1200.
smbenson
DD-WRT Novice


Joined: 04 Mar 2018
Posts: 1

PostPosted: Sun Mar 04, 2018 21:58    Post subject: E1200 Vlan Reply with quote
I'm not new to dd-wrt, but this was my first attempt to install it on a cisco e1200 v2. I followed the wiki and installed mini first and then mega version from wiki. After reviewing many of the posts on this unit, I finally got vlans working using ssh and nvram set commands that are out there. Unfortunately, the wan port was not working properly.

I resigned myself to start over, installing the old mini version. The vlan info by default is working and configured correctly. Of course you loose the bridge on 1st reboot and loose the lan ports. Adding the bridge via wifi and you're back in business. Next I configured the vlan setup that I wanted (ports 1, 2 - 192.168.1.1 / ports 3,4 - 192.168.2.1) using ssh/nvram set commands that are well documented. Everything worked as it was supposed to including wan port.

I then upgraded to the 33555 mega version from the wiki not resetting to factory settings. All my settings went through and worked perfectly (vlans and wan port). Bridging carried through, so I didn't loose my lan ports as well.

Not sure if this is any easier way to get things working, but the network settings of the original mini version work correctly - vlan0 blank, vlan1 lan ports 1-4, vlan2 wan. On mega versions 29519 and 33555, network settings are vlan0 lan ports 1-4, vlan 1 wan port. Even when you change them to the mini config, I couldn't get everything working.

Food for thought. You still have to use ssh to config vlans, but after getting them working on mini you can upgrade to the later versions without any additional configuration.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum