- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- disabling/enabling ip forwarding
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2001 11:42 PM
тАО08-15-2001 11:42 PM
I have HP-UX 10.20 system, configured as a firewall with Check Point 4.1. In /sbin/init.d there is a script which disables ip packets forwarding by the command:
echo "ipforwarding /W 0" | adb -w /stand/vmunix /dev/kmem
Further the forwarding is performed by the firewall components ( a driver in the kernel, device file and a daemon ).
When I stop firewall daemon, forwarding of course stops too.
In this situation I would like to enable the normal "Unix-level" forwarding. I am not familiar with adb, but I suppose the command could look like:
#echo "ipforwarding /W 1" | adb -w /stand/vmunix /dev/kmem
Is this OK or it will crash the system :-))?
Thanks,
Rumen
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2001 12:07 AM
тАО08-16-2001 12:07 AM
Re: disabling/enabling ip forwarding
On HPUX1100 you can use ndd to set the value of IP_FORWARDING dynamically
try
ndd -h ip_forwarding
and to get the value
ndd -get /dev/ip ip_forwarding
and set it as
ndd -setr /dev/ip ip_forwarding [0-2]
You can permanently set it in the nddconf file
I am not sure if ndd is available in HP10.20
...BPK...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2001 12:07 AM
тАО08-16-2001 12:07 AM
SolutionYou can test it after the reboot by doing:
echo "ipforwarding?D" | adb /stand/vmunix /dev/kmem
and
echo ipforwarding/D | adb /stand/vmunix /dev/kmem
Th first one checks the actual vmunix file, the second one checks th erunning kernel in memory
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2001 10:16 AM
тАО08-16-2001 10:16 AM
Re: disabling/enabling ip forwarding
should work. You may want to consider either of
these two options
1) Forward always
2) Forward only if you have two interfaces
0) disable ip forwarding
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2001 10:21 AM
тАО08-16-2001 10:21 AM
Re: disabling/enabling ip forwarding
I have run Firewall1 on 10.20 and my solution was to use: nettune -s ip_forwarding 0
in an rc script. Ndd is not available under 10.20 but nettune is.
Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2001 03:23 PM
тАО08-16-2001 03:23 PM
Re: disabling/enabling ip forwarding
From the nettune man page:
To set the value of the ip_forwarding object to 1:
nettune -s ip_forwarding 1
The 1 enables forwarding and a 0 disables.
Nettune eventually does the call to adb but this way if you screw up you don't get an unfriendly error message.
I recommend nettune over adb when possible.