Operating System - HP-UX
1836645 Members
1683 Online
110102 Solutions
New Discussion

Re: Enabling IP Forwarding HP-UX 11i V2

 
Nisheeth Rai_1
New Member

Enabling IP Forwarding HP-UX 11i V2

How can I enable IP forwarding on my new HP UX server? It has to work as a proxy server.
I want to forward the traffic coming on private network interface to public interface.

5 REPLIES 5
Muthukumar_5
Honored Contributor

Re: Enabling IP Forwarding HP-UX 11i V2

May be you can set routing setting to do this successfully.

Can you post your netstat -rnv output and requirement on which source network to which destination network with ip-address.

hth.
Easy to suggest when don't know about the problem!
Sergejs Svitnevs
Honored Contributor

Re: Enabling IP Forwarding HP-UX 11i V2

Are you sure that ip forwarding is disabled?
Please check it by executing:
# ndd -get /dev/ip ip_forwarding
If forwarding is enabled, then output wiil be "2".
If not, execute:
ndd -set /dev/ip ip_forwarding 2

For static change add to /etc/rc.config.d/nddconf file the following lines:
TRANSPORT_NAME[X]=ip
NDD_NAME[X]=ip_forwarding
NDD_VALUE[X]=2

Regards,
Sergejs
RAC_1
Honored Contributor

Re: Enabling IP Forwarding HP-UX 11i V2

ndd -h supported

Set appropriate option.

ndd set /dev/ip "xyz" value_to_set
Put it in nddconf file to sustain it after reboot.
There is no substitute to HARDWORK
rick jones
Honored Contributor

Re: Enabling IP Forwarding HP-UX 11i V2

FWIW, in general usage, IP forwarding and "proxy" are different things. IP forwarding is strictly whether the box will act as an IP router. It will not do anything "special" with the traffic.

If you want the system to be say an HTTP proxy, then you need to run HTTP proxy software - say squid or somesuch.

If you want the system to act as as NAT (Network Address Translator) then I believe that functionality is part of the ipfilter functionality - should be docs on docs.hp.com.
there is no rest for the wicked yet the virtuous have no pillows
Nisheeth Rai_1
New Member

Re: Enabling IP Forwarding HP-UX 11i V2

Hi Admins,
Its through now. Squid itself forwards the requests to the interface, connected to public network.

I got the doubt becuase I don't have a local DNS server and proxy clients were not able to resolve the destination web addresses. I was able to connect to internet on server so thought, I'll have to divert traffic to public network. Once I defined DNS server properly, it started working.


Thanks to all who replied.