Linux

Port forwarding using netcat.

This example shows how to create a custom xinetd service, in this case to forward radmin (port 4899) to another server using netcat. Create a file in /etc/sysconfig/xinetd.d/ (call it what you want – but for this example radmin would be a good choice) Create a definition in your /etc/services file contains a mapping for […]

Linux

How do I turn on IP forwarding on Linux?

Turn on IP forwarding in Linux IP. To turn forwarding on temporarily, use the following command as root: (this will be disabled after a reboot) echo “1” > /proc/sys/net/ipv4/ip_forward Or to make it permanent add the following to /etc/sysctl.conf net.ipv4.ip_forward = 1 In older versions of Redhat / CentOS you can edit /etc/sysconfig/network and enable […]