Changes

Jump to: navigation, search

XUELK-TN-001: Configuring SBC Lynx as industrial router

982 bytes added, 07:46, 23 August 2016
add persisent sysctl configuration for packet forwarding
At the next boot the saved <code>iptables</code> rules will be automatically loaded.
 
 
----
 
Please note that <code>sysctl</code> settings (e.g. the ones used to enable packet forwarding) are not persistent across reboots. To apply sysctl settings at boot time automatically, just add them to [http://linux.die.net/man/5/sysctl.conf <code>/etc/sysctl.conf</code>] as <code>token = value</code>:
 
<pre>
root@sbc-lynx:~# tail /etc/sysctl.conf
#net.ipv6.conf.all.accept_source_route = 0
#
# Log Martian Packets
#net.ipv4.conf.all.log_martians = 1
#
 
#kernel.shmmax = 141762560
 
net.ipv4.conf.eth0.forwarding=1
net.ipv4.conf.eth1.forwarding=1
</pre>
 
sysctl.conf settings are applied with init script during network configuration (see <code>/etc/init.d/networking</code>)
 
To check sysctl.conf syntax user can apply those settings also manually with the following command:
 
<pre>
root@sbc-lynx:~# sysctl --load=/etc/sysctl.conf
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.all.rp_filter = 1
net.ipv4.conf.eth0.forwarding = 1
net.ipv4.conf.eth1.forwarding = 1
</pre>
737
edits

Navigation menu