Community discussions

MUM Europe 2020
 
snira75
just joined
Topic Author
Posts: 3
Joined: Fri Jul 06, 2007 6:35 pm

Why all connected IP are the same?

Sat Jul 07, 2007 2:30 pm

Just entered into Mikrotik world - so I am new to this all.

My problem is:

I have a webserver and a gameserver. I was useing SMC router with port forwarding. Everything was OK. Log files recorded every IP that was connecting to server. Now with my MIKROTIK RouterBOARD 100 series (software - v.2.9.44) something has gone wrong (maybe). All connections in Webserver and Gameserver log files are identified as a single IP address - the router`s IP (192.168.0.1). But for stats I have to see every single IP that is connecting .

Please help me to solve this one out.
 
User avatar
airstream
Member Candidate
Member Candidate
Posts: 188
Joined: Fri Feb 03, 2006 6:33 am
Location: New Zealand

Re: Why all connected IP are the same?

Sun Jul 08, 2007 1:48 am

Have you DST natted these ports from your internet IP to your internal LAN servers ip through ROS? check your masquerade settings, and your default routes too.
 
snira75
just joined
Topic Author
Posts: 3
Joined: Fri Jul 06, 2007 6:35 pm

Re: Why all connected IP are the same?

Mon Jul 09, 2007 2:02 am

Here is the NAT configuration:

In Winbox: IP -> FIREWALL -> NAT

Chain= dstnat; Dst.address= xxx.xxx.xxx.xxx (my public IP adrress); Protocol= 6(tcp); Dst.port= 80
Action= dst-nat; To address= 192.168.xxx.xxx (local IP address); To port= 80

Chain= srcnat
Action= masquerade

Is this part ok? Thanks! :)
 
User avatar
airstream
Member Candidate
Member Candidate
Posts: 188
Joined: Fri Feb 03, 2006 6:33 am
Location: New Zealand

Re: Why all connected IP are the same?

Mon Jul 09, 2007 2:12 am

Not quite.

You need this:
chain=srcnat out-interface={your wan interface} dst-address=0.0.0.0/0 
     action=masquerade
This is to allow your network to talk to the internet.

And a default route 0.0.0.0/0 to your gateway IP.
 
snira75
just joined
Topic Author
Posts: 3
Joined: Fri Jul 06, 2007 6:35 pm

Re: Why all connected IP are the same?

Mon Jul 09, 2007 2:19 am

Thanks airstream! It`s working now! :)

Who is online

Users browsing this forum: martinclaro, sjafka and 39 guests