1753304 Members
6323 Online
108792 Solutions
New Discussion юеВ

IP forwarding

 
gany59
Regular Advisor

IP forwarding

how to check if IP forwarding is enabled or not ? if not how to set /enable it ?

4 REPLIES 4
Tim Nelson
Honored Contributor

Re: IP forwarding

man ndd

then

ndd -h

then

ndd -get /dev/tcp ip_forwarding



rick jones
Honored Contributor

Re: IP forwarding

To make ndd settings "permanent" (ie be applied after a reboot) you will want to edit the file /etc/rc.config.d/nddconf .
there is no rest for the wicked yet the virtuous have no pillows
SoorajCleris
Honored Contributor

Re: IP forwarding

Hi ,

This is done with the help of ndd.
You can check that using

#ndd -get

the parameters are
ip_forward_src_routed - Controls forwarding of source routed packets
ip_forwarding - Controls how IP hosts forward packets
ip6_forwarding - Controls how IPv6 hosts forward packets


Regards
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
Laurent Menase
Honored Contributor

Re: IP forwarding

ndd -h ip_forwarding

ip_forwarding:

Controls how IP hosts forward packets: Set to 0 to inhibit
forwarding; set to 1 to always forward; set to 2 to forward
only if the number of logical interfaces on the system is 2
or more. [0,2] Default: 2

so to disable:
ndd -set /dev/ip ip_forwarding 0

else in /etc/rc.config.d/nddconf for next reboot.