Author Topic: Using netscaler as default gateway  (Read 3464 times)

Offline alexpach

  • Contributor
  • *
  • Posts: 2
  • Karma: 0
Using netscaler as default gateway
« on: February 17, 2008, 01:19:51 PM »
Hi,

   I have been trying to find a way how to configure the netscaler (v.8) to act as a default gateway for the network. I have an internal MIP and the load-balancing works fine, but when I try to ping from the servers out - it never gets past the netscaler.
   
   Perhaps someone here can give me a tip. Thanks,

-Alex

Offline jmelika

  • Administrator
  • Hero Member
  • *****
  • Posts: 294
  • Karma: 5
Re: Using netscaler as default gateway
« Reply #1 on: February 19, 2008, 03:19:35 AM »
Alex,

I have used the NS as my default gateway in many setups in ver 6, 7, and 8.  I think your issue is likely to be RNAT is missing.  Do you know if you've set that up?  You can use the GUI and go to System/Routes and select the RNAT tab.  If it's empty, then that's it.  Configure RNAT by clicking that button at the bottom and define the source network and which IP to use for NAT'ing.  The NAT IP should be an external IP.

Basically your network when it tries to go out, it needs to be using an external IP that the outside world could communicate back to; which would hit the NS.  The NS would then send those packets back to the server if it's supposed to.

Let me know if that does it for you.

Good luck!
JM

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 152
  • Karma: 16
Re: Using netscaler as default gateway
« Reply #2 on: February 20, 2008, 12:11:33 AM »
RNAT may be one issue, in that without RNAT configured, we won't translate the IP of the server into a public IP, but this would depend on the setup of the IP addresses.  The other is to insure that L3 mode is enabled, as without it the Netscaler won't route traffic that way.

The Oracle

Offline alexpach

  • Contributor
  • *
  • Posts: 2
  • Karma: 0
Re: Using netscaler as default gateway
« Reply #3 on: February 21, 2008, 07:15:26 AM »
Great! Thank you so much. I can't believe I overlooked that option.

Just in case this helps someone else. I checked that I am using L3 with this command:

  show ns mode

And I set the rnat subnet with this command:

  set rnat 10.0.0.0 255.255.255.0

I didn't have to give it the IP of the MIP, since I only have one - and it uses it automatically (if I understand correctly).

Thanks for the help.

-Alex


Offline TheOracle

  • Hero Member
  • *****
  • Posts: 152
  • Karma: 16
Re: Using netscaler as default gateway
« Reply #4 on: February 21, 2008, 11:57:45 AM »
Yep, you are correct.  You can specify the MIP if you like, or you can use a SNIP or even a VIP.  This last allows you to for example, have inbound and outbound SMTP traffic use the same IP, which makes anti-spam systems friendlier to your traffic.

The Oracle