Allow IPv4 forwarding
This commit is contained in:
parent
bab23f75eb
commit
d444a2de65
3 changed files with 17 additions and 0 deletions
5
build.sh
5
build.sh
|
@ -332,6 +332,11 @@ apply_patch '06-dhcp-server.diff'
|
||||||
install -d "$ROOTFS_DIR/etc/dhcp/dhcpd.conf.d/"
|
install -d "$ROOTFS_DIR/etc/dhcp/dhcpd.conf.d/"
|
||||||
install -m 644 files/dhcpd.conf.d/192.168.82.0.conf "$ROOTFS_DIR/etc/dhcp/dhcpd.conf.d/"
|
install -m 644 files/dhcpd.conf.d/192.168.82.0.conf "$ROOTFS_DIR/etc/dhcp/dhcpd.conf.d/"
|
||||||
|
|
||||||
|
##
|
||||||
|
# IP forwarding.
|
||||||
|
#
|
||||||
|
apply_patch '07-ipv4-forwarding.diff'
|
||||||
|
|
||||||
##
|
##
|
||||||
# Unmount virtual file systems.
|
# Unmount virtual file systems.
|
||||||
#
|
#
|
||||||
|
|
11
patches/07-ipv4-forwarding.diff
Normal file
11
patches/07-ipv4-forwarding.diff
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- rootfs.orig/etc/sysctl.conf
|
||||||
|
+++ rootfs/etc/sysctl.conf
|
||||||
|
@@ -25,7 +25,7 @@
|
||||||
|
#net.ipv4.tcp_syncookies=1
|
||||||
|
|
||||||
|
# Uncomment the next line to enable packet forwarding for IPv4
|
||||||
|
-#net.ipv4.ip_forward=1
|
||||||
|
+net.ipv4.ip_forward=1
|
||||||
|
|
||||||
|
# Uncomment the next line to enable packet forwarding for IPv6
|
||||||
|
# Enabling this option disables Stateless Address Autoconfiguration
|
|
@ -4,3 +4,4 @@
|
||||||
04-swap.diff
|
04-swap.diff
|
||||||
05-path.diff
|
05-path.diff
|
||||||
06-dhcp-server.diff
|
06-dhcp-server.diff
|
||||||
|
07-ipv4-forwarding.diff
|
||||||
|
|
Reference in a new issue