OpenWrt Forum

Topic: A war against ISP's monopoly aka WR1043ND+Vlan.

The content of this topic has been archived on 31 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.


Hello there,

For the last few weeks I've been trying to solve a problem many people in Lithuania struggle with. Here's an introduction:

In Lithuania, where I am now, the national ISP gives fibre optic connections (100Mbps symmetric for 20€/month) and provides IPTV service over the fibre as well. Trouble is that they force users to use their own crappy equipment. The answer is always the same - users can not (or are not supposed to) use their own routers therefore, obviously, the provider will not help configuring one's router. They redirect us to another company that provides paid support, but on arrival they say they only deal with officially approved hardware. Enough to say that the hardware they provide has most of configuration options hidden/blocked and is targeted mainly to home users checking mail / downloading movies.

So as a matter of a fight against the monopoly I've had this brilliant idea of getting a VLAN-capable router, installing DD-WRT or OpenWrt, making it all work and then posting it on Lithuanian forums so everyone can have it working for half the price operator charges and obviously with better quality, stability etc.

OK. so here's the situation:

TEO - Lithuanian Telecom
Zebra - ISP, Division of TEO
MGMT - Management (I suppose)
GALA - IPTV service
IPTV STB - Set-Top Box (Sort of a decoder if you wish) plugged into an ordinary TV

This tutorial written for DD-WRT … ss_traffic is no longer helpful as the GUI have changed and there's no instruction on how to do it in terminal[/url] I didn't find anything similar for OpenWrt.

My goal is to:

1. Make the Set-Top box able to stream TV channels
2. Make it possible to watch TV also on computers (also via WiFi, if possible)
3. Maintain normal functionality for everything else

I've found two sites with some information on the setup but firstly - they are in Lithuanian (which I don't speak) and secondly - none of them provides complete information. One is a complete guide on how to achieve it on Debian … naudojimas
I recommend using google chrome with autotranslate from Lithuanian to understand anything not being code;

The second is a blog with people trying to make it work with DD-WRT with some results: … netas.html
Getting PCs and TV to work with original Pirelli DRG125G router: … er_14.html … nklas.html

What I'm asking for is for you to tell me how to achieve it.

Anyways - here- the original router's config file. Earlier in this post - a full instruction on how to make it with Debian. Plus some additional info.

What I can't do is translate the debian steps, add pieces of old config and strips of information from blogs to compile a step-by-step tutorial to liberate the people here from the ISP's tyranny.

Help me Obi-Wan Kenobi... You're my only hope...

*Pictures "borrowed" from

And please, go easy on me...

like: ssh to the router,
opkg update && opkg install nano
cd /etc/config
nano network

paste the following:

check if it works; if it does, say how cool we are. If not - look into some logs, paste them here and let's try again.




As soon as one puts IPTV in the subject - no answers, literally. Does it really scare so much?

So in other words:

I have _some_ stuff coming to vlan6. Please help me create a vlan6 on switch port 4 and make the stuff addressed for it go there...


Its funny, i just make nearly same thing before 1 day big_smile
You just have to take port 1 and 3 as one vlan a second vlan separately for iptv and everything should go out through the wan port. The wan port should have the default internet vlan tag. Work with ethx.xx for tagging. Get a router that does not have problems with tag over 16. Then bridge all together on virtual wan ports and you are done wink

PS: Does OpenWRT support IEEE 802.1p?

(Last edited by Lubomir on 23 Jan 2011, 02:52)


Yes, yes, I'm quite aware of what theoretically needs to be done.
What I'm asking for is simply for anybody to actually write the commands for me. And since my TV is on vlan6 - can you explain a bit more why is it so important that my router supports tag over 16? (It does up to 4k I think, but anyway...)

And dear Lubomir, since you have done that already - can you simply paste the /etc/config/network and other files you've modified here?

That'd be most appreciated wink


You write there something about vlan100 and i did not understand why. And where is the difference between vlan 5 and 6?
Can you just explain how the traffic goes trough the router and how is the communication based on the other vlan's then the normal one? Every vlan is separate network. You have to know how to sign up. Internet is normaly PPPoE. How does iptv work?


hello again...

Forgive me my lameness, please wink

OK - so... The optic fibre comes to my place, goes to a converter to ethernet. This ethernet cable can be either plugged in a pc and then internet works normally, but no TV. If plugged to the original router - there's TV and internet. So based on the original router's configand some other documentation I realized there's some vlan thing going on here (I never had to do with vlans before). So I got a reasonably priced router with vlan capability and gigabit wan port - TP-Link WR1043ND.

1. I assume theres no pppoe whatsoever here. Yes, the original router config file includes adsl modem config but it's not in use as the wan port is ethernet.
2. I know for a fact that vlan6 is (forgive me the lame terminology) where the TV thing is going on. I suppose it means that packets for TV are tagged as vlan6 or something...
3. I don't think I need any of the vlan5 thing as based on the picture above - it's some internal isp's management thing. I mean I hope so...

Hope that clears things a bit.

And thanks for your interest wink


You write: The optic fibre comes to my place, goes to a converter to ethernet. This ethernet cable can be either plugged in a pc and then internet works normally

How should THIS work? I know the technology many ISP's use and i never heard of something like this o_O You have to register so that they know who you are. What is this "converter"???

Please sniff first with wireshark to understand how the network is exyctly working before starting to try to make a solution for this.


Jesus Christ...

No, I don't have to register. They are pretty much aware where they put the optic fibres. And I suppose, the optic -> ethernet thing has some sort of an ID. Maybe. Anyway - see the pictures yourself,

Look, why don't we skip the part where you say my setup is impossible, no ISP does that, my converter does not exist, I write about vlan100 in stead of 100Mbps... I think we're just both tired (at least here it's 3:24 AM) so let me word again what I'm silently hoping someone could help me with:

1. Treat everything as it was just ethernet OK? No pppoa pppoe, none of this shit...
2. Internet is on (i think) untagged vlan 0 or 1, anyway - the default one...
3. IPTV is on Vlan6.

Please help me, instruct me step by step how to create the vlan6 on switch port 6 and make the firewall ignore the multicast traffic (not block it in case it does). Write something like this, please:

1. log in to your router
2. cd /etc/config/
2.a if you hate vi type opkg update && opkg install nano
3. vi or nano ./network
4. paste this:
5. reboot
6. check if it works and if yes enjoy, if not, paste some_log here.


OK, so this:

config 'interface' 'loopback'
       option 'ifname'   'lo'
       option 'proto'    'static'
       option 'ipaddr'   ''
       option 'netmask'  ''

config 'interface' 'lan'
        option 'ifname'   'eth0.2'
        option 'type'     'bridge'
        option 'proto'    'static'
        option 'ipaddr'   ''
        option 'netmask'  ''

config 'interface' 'wan'
        option 'ifname' 'eth0.1'
        option 'proto' 'dhcp'

config 'interface' 'vlan6'
        option 'ifname' 'eth0.6'
        option 'proto' 'none'
        option 'defaultroute' '0'
        option 'peerdns' '0'

config 'interface' 'vlan5'
        option 'ifname' 'eth0.5'
        option 'proto' 'none'
        option 'defaultroute' '0'
        option 'peerdns' '0'

config 'switch'
        option 'name' 'rtl8366rb'
        option 'reset' '1'
        option 'enable_vlan' '1'

config 'switch_vlan'
        option 'device' 'rtl8366rb'
        option 'vlan' '6'
        option 'ports' '0t 4 5t'

config 'switch_vlan'
        option 'device' 'rtl8366rb'
        option 'vlan' '5'
        option 'ports' '0t 5t'

config 'switch_vlan'
        option 'device' 'rtl8366rb'
        option 'vlan' '1'
        option 'ports' '0 5t'

config 'switch_vlan'
        option 'device' 'rtl8366rb'
        option 'vlan' '2'
        option 'ports' '1 2 3 5t'

Did the trick - meaning I have settop box working.

Any ideas how can I make it also work on a PC?

Lithuanian instruction for Pirelli DRG125 (from google translator)

Log in to the router. This can be done any browser the introduction of the router's IP address. In most cases an IP router is When connected to a router, you will need to enter a user name and password. If I am not mistaken, the standard configuration and a user name and password are the same - "admin".
    Activate IGMP, IGMP fast-leave IGMP multicast and unicast the functionality. In order to choose the "Advanced"> "Routing" section for Routing Protocols "tick tick the appropriate options. Activate the changes by clicking the "Apply"
    Activate the IP routing between the internal network and GALA TV Network (VLAN6). Need a menu to choose the "Network Connections". Then activate the bridge of IPTV "link. In this way, open the Gala TV subnet configuration page. Column of the "Settings" under "Internet Protocol" select "Obtain an IP address automatically". Activate the changes by clicking the "Apply". The column "routing" in the 'Routing Mode "to" NAPT "tick tick" Multicast - IGMP Proxy Default "and add a route (route) to the" Destination " and netmask" Activate the changes by clicking the "Apply"
    Activate IGMP intranet. Need a menu to choose the "Network Connections". Then activate the LAN Bridge 'link. In this way, open the internal network configuration page. The column "routing" in the 'Multicast - IGMP Proxy Internal' (put a check mark) and choose "IGMPv3.
    Reload the router. Choose the menu item "Advanced" and then "reboot". Wait 2-3 minutes and can be tested.

The discussion might have continued from here.