Community discussions

MikroTik App
 
jmba3bcock
just joined
Topic Author
Posts: 7
Joined: Wed Dec 23, 2009 12:27 am

Port forward from mikrotik to ipcop

Wed Dec 23, 2009 12:35 am

Hello, I am sure this has been asked before.........

My setup is Internet-----Mikrotik-------ipcop-------LAN

I want to forward a port from Mikrotik to ipcop.

I have checked the settings over and over again but no dice. Is this even possible?

I am thinking the dual NAT's is causing a problem.........

tks
 
hking
just joined
Posts: 8
Joined: Thu Oct 29, 2009 12:52 pm

Re: Port forward from mikrotik to ipcop

Wed Dec 23, 2009 4:56 pm

Had this exact problem a while ago and I couldn't manage. My setup was:

Internet-------IPCOP-------RB750-------LAN

IPCOP did NAT and forwarded ports to the RB and that's where it died(the RB didn't have those services listening(25, 85, 110) to accept and forward onto the LAN's mailserver). It's basically a daisy-chained port-forward- which is kinda ugly.

AFAIK, you need to have services listening on the IPCOP once you port-forward from the RB.
I just stopped there, since the RB(in my instance) doesn't have many services- ftp, http, https and 2/3 other services.

Would be helpful if someone from MT can comment on this.


Thanks and havva cuppa...


Helmuth Kisting
 
User avatar
kameelperdza
Member
Member
Posts: 468
Joined: Thu Nov 27, 2008 11:45 am
Location: Oudtshoorn, South Africa

Re: Port forward from mikrotik to ipcop

Wed Dec 30, 2009 4:20 pm

Are you using routing?

And does your internet work
 
jmba3bcock
just joined
Topic Author
Posts: 7
Joined: Wed Dec 23, 2009 12:27 am

Re: Port forward from mikrotik to ipcop

Sun Jan 03, 2010 2:41 am

Thanks for your comments hking. When you say services on ipcop, I am assuming you mean to have them running directly from the ipcop linux kernel?? I am actually just trying to port forward 3389 for RDP into my desktop machine, you would think that my RB450 would just forward the traffic on and ipcop would pick it up as normal internet traffic, seems strange as it worked before and all that i have done is stick ipcop in behind my RB450, and giving it a different external (nat ip). I was not aware that tcp traffic when passed through a NAT is changed that much.........

to answer the other question, I am not doing any fancy routing. I have all my ports setup in a bridge (default) and have two simple dst and src nat rules setup. Yes, my internet is working.

thanks
 
User avatar
kameelperdza
Member
Member
Posts: 468
Joined: Thu Nov 27, 2008 11:45 am
Location: Oudtshoorn, South Africa

Re: Port forward from mikrotik to ipcop

Mon Jan 04, 2010 9:57 am

1. What ips are your Internet-----Mikrotik-------ipcop-------LAN

2. So you saying that mikrotik(in & out interface) is in the same bridge?
So if internet ip is 192.168.2.1 then mikrotik bridge is 192.168.2.2 and ipcop red is 192.168.2.3
If so then all you need to do is to let your isp or urself forward port 3389 to 192.168.2.250. Then create a alias in ipcop with ip 192.168.2.250 and use ipcop port forward to forward port 3389 from 192.168.2.250 to internalk ip address.

3. Why would you want to put mikrotik between ipcop and internet if ipcop can do the same as mikrotik.
 
jmba3bcock
just joined
Topic Author
Posts: 7
Joined: Wed Dec 23, 2009 12:27 am

Re: Port forward from mikrotik to ipcop

Tue Jan 05, 2010 4:28 am

Hey, thanks for the reply. Answers below:

1. What ips are your Internet-----Mikrotik-------ipcop-------LAN
IP addresses are: Internet 64.x.x.x, Mikrotik 192.168.88.1, ipcop red interface 192.168.88.x (dhcp assigned), ipcop green interface (lan) 10.x.x.x

2. So you saying that mikrotik(in & out interface) is in the same bridge?
Yes, i was wondering if this was a problem or not? I had asked a networking guy who works with it more than me and he had said it was fine that way.....

So if internet ip is 192.168.2.1 then mikrotik bridge is 192.168.2.2 and ipcop red is 192.168.2.3
If so then all you need to do is to let your isp or urself forward port 3389 to 192.168.2.250. Then create a alias in ipcop with ip 192.168.2.250 and use ipcop port forward to forward port 3389 from 192.168.2.250 to internalk ip address.I

I had noticed the option for aliases and tried adding one as you suggested, however, it did not work and it also caused internet access to go offline for some reason to my 10.x.x.x internal network.

3. Why would you want to put mikrotik between ipcop and internet if ipcop can do the same as mikrotik.
I wanted ipcop in behind mikrotik for the use of dansguard for content filtering. It would be nice if mikrotik did this, but I understand that mikrotik is more geared for routing.

Hope that answers your questions.

tks
 
User avatar
kameelperdza
Member
Member
Posts: 468
Joined: Thu Nov 27, 2008 11:45 am
Location: Oudtshoorn, South Africa

Re: Port forward from mikrotik to ipcop

Tue Jan 05, 2010 9:33 am

Ok try this.

1. You can give ipcop static ip address or leave it that way. In alias create 192.168.88.250 but make sure that that ip is not being used. Then in port forward choose tcp or udp ,change default alias to your new alias, in distination ip put the ip of computer you want port to be forwarded to. In source port put the port number, do the same in distination port.

Doing that should not bring down your system. Maybe you system went down due to ip conflict or the dhcp assigned thing.

Good Luck
 
User avatar
kameelperdza
Member
Member
Posts: 468
Joined: Thu Nov 27, 2008 11:45 am
Location: Oudtshoorn, South Africa

Re: Port forward from mikrotik to ipcop

Tue Jan 05, 2010 9:52 am

Look at my settings
You do not have the required permissions to view the files attached to this post.
 
jmba3bcock
just joined
Topic Author
Posts: 7
Joined: Wed Dec 23, 2009 12:27 am

Re: Port forward from mikrotik to ipcop

Tue Jan 05, 2010 8:57 pm

Ok, thanks. I will give that a shot and see if it works.

Will let you know.

Jeremy
 
User avatar
kameelperdza
Member
Member
Posts: 468
Joined: Thu Nov 27, 2008 11:45 am
Location: Oudtshoorn, South Africa

Re: Port forward from mikrotik to ipcop

Thu Jan 07, 2010 3:57 pm

Did it work?

Who is online

Users browsing this forum: raiser and 104 guests