1
0
Fork 0

Allow IPv4 forwarding

This commit is contained in:
Braiden Vasco 2017-07-06 07:25:39 +00:00
parent bab23f75eb
commit d444a2de65
3 changed files with 17 additions and 0 deletions

View file

@ -332,6 +332,11 @@ apply_patch '06-dhcp-server.diff'
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/"
##
# IP forwarding.
#
apply_patch '07-ipv4-forwarding.diff'
##
# Unmount virtual file systems.
#

View 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

View file

@ -4,3 +4,4 @@
04-swap.diff
05-path.diff
06-dhcp-server.diff
07-ipv4-forwarding.diff