Entries from 2012-04-13 to 1 day

Check if IP Forwarding is enabled

Using sysctl:sysctl net.ipv4.ip_forward net.ipv4.ip_forward = 0Enable IP Forwarding on the flyAs with any sysctl kernel parameters we can change the value of net.ipv4.ip_forward on the fly (without rebooting the system):sysctl -w net.ipv4.…

route delete/add

Destination Gateway Genmask Flags Metric Ref Use Iface default 192.168.2.1 0.0.0.0 UG 100 0 0 eth0 192.168.1.0 * 255.255.255.0 U 0 0 0 wlan0 localnet * 255.255.255.0 U 0 0 0 eth0sudo route del -net 192.168.1.0 netmask 255.255.255.0 dev wla…

resolvconf

First, install the resolvconf package, then runsudo nano /etc/resolvconf/resolv.conf.d/headDo not touch warning /etc/resolv.conf is autogenerated, so the warning is there so it will get put in /etc/resolv.conf when /etc/resolv.conf is gene…