DSL 502-T port forwarding woes
Posted by mwotton Tue, 25 Oct 2005 13:52:00 GMT
Well, this is mildly annoying. If you try to forward a range of ports in the DSL 502-T ADSL modem from DLink, it seems to forward them all to the same port on the internal machine. It’s an embedded linux machine underneath, so I’m almost tempted to hack it to do the right thing, but it smells like a massive time sink, and I have enough of those already.
Also looking into traffic shaping for Linux… it’s a bit more complicated than the usual setup, as I only want to throttle connections to the outside world - no point throttling your LAN transfers. Still, tc looks like your typical swiss army chainsaw, so I’m sure it’s doable with a little skullsweat. (Why is this sort of fiddling so much more appealing than paying work? One day I’ll work it out.)
Edit: well, the subtle approach didn’t work. tc didn’t want to work on virtual devices, or I could have just created eth0:1 and run wondershaper on it. In the end, the simplest way was to brute force it - I chucked another network card in, assigned it another IP on the same network, and used route to make it the route to the router. Thus, I can run wondershaper on that interface without affecting my normal LAN traffic.
Still have to work out how to get that port forwarding working, though.
Edit: route to make it the route to the router? Lordy. I won’t be winning any English composition prizes for that little gem…
