Proxy By Hostname Configuration

  • Adding a Second IP Address to a Network Adapter on Solaris

Adding a Second IP Address to an Existing Network Adapter on Solaris

OCLC will end support for EZproxy on the Solaris 10 (x86) platform on December 31, 2018.

Before Getting Started

Request a new DNS name and IP address from your network administrator. The IP address you request must be in the same subnet as the existing IP address on your server.

If you use the suggested proxy by hostname configuration, be sure to request the creation of a wildcard entry to point to the same address. With proxy by hostname, you should also verify that the DNS entries with the Check DNS test.

In the following instructions, the DNS name ezproxy2.yourlib.org and the IP address 68.14.229.198 demonstrate where the DNS name and IP address should appear, and where you should insert your values instead.

Add an IP address to a Solaris network adapter

1. Become root on your system, either by logging into that account or using the su command.


2. Change your current directory to the /etc directory with the command:

cd /etc

3. Check for existing network adapters with the command:

ls hostname.*

In most instances, you will see either hostname.hme0, hostname.le0, or hostname.eri0. If you see other files with any other names and are unfamiliar with configuring TCP/IP, you may want to consult with your system administrator before proceeding or contact support@oclc.org.


4. Edit /etc/hosts and add a line for your new address and name such as:

68.14.229.198 ezproxy.yourlib.org

5. To create the new interface, you need to create a file that matches the name found in step 3 with :1 added to the end, such as /etc/hostname.hme0:1 or /etc/hostname.le0:1. This new file should contain only the new DNS name, such as:

ezproxy.yourlib.org

6. With these changes in place, your system is now configured to create this added IP address each time it boots. You can either reboot to make this change take effect, or manually enable the new address with a series of command similar to:

ifconfig hme0:1 plumb
ifconfig hme0:1 68.14.229.198

ifconfig hme0:1 up

Reconfigure EZproxy to use a specific IP address

To tell EZproxy to use this name and address, edit config.txt and add lines similar to:

Name ezproxy.yourlib.org
Interface 68.14.229.198

These lines should appear before any LoginPort, LoginPortSSL, or Title lines.

Reconfigure Apache to use a specific IP address

You will also need to configure your existing web server to tell it to use only its IP address. In Apache, you do this by editing httpd.conf and changing your Listen lines like:

Listen 80
to
Listen 68.14.229.197 :80

where 68.14.229.197 would be replaced by the main IP address of your server.

 

To use a second IP address in a Group configuration...