LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 02-25-2014, 04:35 AM   #1
MarioNYB
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 10.1.2.6 and I can open the index page when I try 10.1.2.6:81 remotely on my server or when I do
Code:
iptables -t nat -A PREROUTING -p tcp -d 85.xx.xx.xx --dport 199 -j DNAT --to 10.1.2.6:81
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 10.1.2.6:900 NOTHING happens. But when I do 10.1.2.6:81 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

Code:
iptables -t nat -A PREROUTING -p tcp -d 85.xx.xx.xx --dport 1900 -j DNAT --to 10.1.2.6:900
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 10.1.2.6? I thought by default it should work... maybe it's my router?

Also:
10.1.2.6 - 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 10.1.2.6 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 05:58 AM.
 
  


Reply


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 04:52 AM
Problems with OpenSwan. Cannot get IPSec/L2TP VPN working Lord C Linux - Networking 0 08-10-2011 01:19 PM
Forward Multiport for Exchange Server 2003 Access zawhtet Linux - Networking 2 06-01-2009 07:26 AM
Not working properly with openswan/l2tp khuongdp Linux - Networking 1 05-24-2007 08:57 PM
Multiport serial card for RAS Server uthlekan Linux - Networking 2 07-12-2003 10:04 AM


All times are GMT -5. The time now is 08:13 AM.

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