Page 1 of 1

Routing isnt workin with /30 subnet

Posted: Fri Apr 03, 2009 8:54 pm
by Ghassan
Hello All,

I have MikroTik RouterOS v3.22 x86 that has 4 network ethernets :

the first ethernet is connected to my Windows 2003 Webserver that has IIS installed also is a client on MikroTik too with ip 192.168.3.1 but Mikrotik has 192.168.3.2/30 and the second ethernet at Mikrotik is connected to the internet .

Third $ Fourth ethernets are for clients also serving with /30 subnets starting from 44.172.16.*/30 .

When i go to the website that is hosting on webserver .. I get my ip as 192.168.3.2 which is the ip that routes my connection to the internet ! though my ip is 44.172.16.2/30 . I was supposed to see my ip at the website logged ! ..

Does anyone know why I am getting this ?

Regards,
Ghassan

Re: Routing isnt workin with /30 subnet

Posted: Fri Apr 03, 2009 9:52 pm
by dconnrt
Hi

It sounds like you have Masquarading (a.k.a. NAT) setup on our outgoing (192.168.3.2) IP - do you have this setup in your routeros firewall?

Also, without the NAT, will your win2000 server know how to route back to your 44.172.16 networks?

Derek

Re: Routing isnt workin with /30 subnet

Posted: Fri Apr 03, 2009 10:14 pm
by Ghassan
Hi

It sounds like you have Masquarading (a.k.a. NAT) setup on our outgoing (192.168.3.2) IP - do you have this setup in your routeros firewall?

Also, without the NAT, will your win2000 server know how to route back to your 44.172.16 networks?

Derek

so what do you suggest me ?

btw.. I have another server that has Squid installed . and I forward http traffic to the server by using this command:
/ip address add address=44.172.16.1/30 interface=Public
/ip address add address=44.172.16.5/30 interface=Public
/ip firewall nat add chain=srcnat  src-address=Customers action=Masquerade
add chain=dst-nat src-address=Customers protocol=tcp dst-port=80 action=dst-nat to-addresses=192.168.5.1 to-ports=3128
and the list are :
44.172.16.2
44.172.16.6

Did i miss something ?