Link to home
Start Free TrialLog in
Avatar of rwallacej
rwallacej

asked on

Sonicwall redirect to different IP

I have leased line, with SonicWALL
Websites hosted in IIS

Server 1 IP is say  10.20.30.40     company1.mycompany.com
Server 2 IP is say  10.20.30.41    company2.mycompany.com

when client visits https://company1.mycompany.com/website
IIS returns website on server 1

when client visits https://company2.mycompany.com/website
IIS returns website on server 2

I want to ditch server 2, but let client keep their https://company2.mycompany.com/website link

can I do this in SonicWALL or other ?
Avatar of Trent Smith
Trent Smith
Flag of United States of America image

Why don't you just change the IP address of the Server 2 to Server 1 in DNS and then verify that it is sending the traffic to the proper server.  This should have nothing to do with the firewall.
Avatar of rwallacej
rwallacej

ASKER

I want to only have this happen with WEBSITES

so if do to company2.mycompany.com on remote desktop,
or connect to it with SQL server database,
it still points to 10.20.30.41

so I don't think DNS would fix this
You would have to update the link to point to the correct IP address then.
Avatar of David Johnson, CD
if you want to ditch server2 you have to move the website to a directory on server1 AND detach the database from server 2 then reattach the sql server data files to server1 and modify the web.config to reflect the new connection string. also add a binding to company2.mycompany.com.
create a new website (right click on sites and select new website. add the location of the files you copied from server 2 and edit the bindings.  You also have to edit dns settings OR in your edge router use NAT to redirect tcp port 80 / 443 to server1

is server2 named company2 ??
ASKER CERTIFIED SOLUTION
Avatar of Blue Street Tech
Blue Street Tech
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial