Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-25-2014, 05:35 AM   #1
LQ Newbie
Registered: Feb 2014
Posts: 1

Rep: Reputation: Disabled
L2TP server multiport not working but single port does?

Hi, I am rather new to the Linux networking but I need something done and after few days of reading and reading I just came to a dead end.

Anyway I restarted everything so my setup is rather CLEAN and I would like it to be clean as possible. I will add as much information you need.

Anyway my SETUP is like this:

Mikrotik L2tp router client > Debian server

What I done so far?

I made my MT router connect to my l2tp server and everything works as I want.
On my router I forwarded all ports I need, including my "test" port which is port :81 - apache server on my local PC

When I connect my PC to the router the router port forwards the port :81 to and I can open the index page when I try remotely on my server or when I do
iptables -t nat -A PREROUTING -p tcp -d 85.xx.xx.xx --dport 199 -j DNAT --to
When I do 85.xx.xx.xx:199 which is my l2tp WAN IP I open my apache correctly and all seems as it works fine!

Now my issue is with my IP camera which is also connected to my MT router and I did all the port forwards needed. To test it I tryed port forwarding without the VPN (l2tp) and it works fine to the WAN on my router (without VPN), now when I want to port forward the IP cam to the l2tp server (I did that with port :81 and it worked fine) my cam won't answer at all.

Whats so specific with the camera? It seems that it's GUI which is on :900 won't work without :9008, so i forwarded both ports on router but when I try NOTHING happens. But when I do I get apache from my PC which is connected to the same router. I did all port forwards on router fine (i think) I don't think the problem is on router side, the problem is on server side (I assume).

So why won't it open :900 (CAM GUI)? I am too newbie to answer it myself... I don't even wanna try to bind it to the server WAN address since it won't work "locally", because later I wanna do

iptables -t nat -A PREROUTING -p tcp -d 85.xx.xx.xx --dport 1900 -j DNAT --to
so I can access my IP CAM remotely.

My question IS! Since the IP CAM depends on 2 ports (900 & 9008) how to make it work on I thought by default it should work... maybe it's my router?

Also: - IP that the l2tp service gave to the mikrotik router

While I am at it! Seems like RTSP:// port which is on 554 won't work either... But! when I try it without VPN tunnel it works fine to the WAN of the MT router but when I do all same thing to the l2tp tunnel so to and i try :554 my router shows my something is trying to access :554 but i don't get any content over the VPN server... why?
Thank you

Last edited by MarioNYB; 02-25-2014 at 06:58 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
L2TP VPN Server on Centos vahab Linux - Server 1 12-23-2012 05:52 AM
Problems with OpenSwan. Cannot get IPSec/L2TP VPN working Lord C Linux - Networking 0 08-10-2011 02:19 PM
Forward Multiport for Exchange Server 2003 Access zawhtet Linux - Networking 2 06-01-2009 08:26 AM
Not working properly with openswan/l2tp khuongdp Linux - Networking 1 05-24-2007 09:57 PM
Multiport serial card for RAS Server uthlekan Linux - Networking 2 07-12-2003 11:04 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:44 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration