Deleted Added
full compact
routing (271545) routing (271610)
1#!/bin/sh
2#
3# Configure routing and miscellaneous network tunables
4#
1#!/bin/sh
2#
3# Configure routing and miscellaneous network tunables
4#
5# $FreeBSD: head/etc/rc.d/routing 271545 2014-09-13 18:54:15Z hrs $
5# $FreeBSD: head/etc/rc.d/routing 271610 2014-09-15 07:20:40Z hrs $
6#
7
8# PROVIDE: routing
9# REQUIRE: faith netif ppp stf
10# KEYWORD: nojailvnet
11
12. /etc/rc.subr
13. /etc/network.subr

--- 307 unchanged lines hidden (view full) ---

321 if checkyesno gateway_enable; then
322 ropts_init inet
323 echo -n ' gateway=YES'
324 ${SYSCTL} net.inet.ip.forwarding=1 > /dev/null
325 else
326 ${SYSCTL} net.inet.ip.forwarding=0 > /dev/null
327 fi
328
6#
7
8# PROVIDE: routing
9# REQUIRE: faith netif ppp stf
10# KEYWORD: nojailvnet
11
12. /etc/rc.subr
13. /etc/network.subr

--- 307 unchanged lines hidden (view full) ---

321 if checkyesno gateway_enable; then
322 ropts_init inet
323 echo -n ' gateway=YES'
324 ${SYSCTL} net.inet.ip.forwarding=1 > /dev/null
325 else
326 ${SYSCTL} net.inet.ip.forwarding=0 > /dev/null
327 fi
328
329 if ! check_jail vnet; then
330 if checkyesno forward_sourceroute; then
331 ropts_init inet
332 echo -n ' do source routing=YES'
333 ${SYSCTL} net.inet.ip.sourceroute=1 > /dev/null
334 else
335 ${SYSCTL} net.inet.ip.sourceroute=0 > /dev/null
336 fi
329 if checkyesno forward_sourceroute; then
330 ropts_init inet
331 echo -n ' do source routing=YES'
332 ${SYSCTL} net.inet.ip.sourceroute=1 > /dev/null
333 else
334 ${SYSCTL} net.inet.ip.sourceroute=0 > /dev/null
335 fi
337
336
338 if checkyesno accept_sourceroute; then
339 ropts_init inet
340 echo -n ' accept source routing=YES'
341 ${SYSCTL} net.inet.ip.accept_sourceroute=1 > /dev/null
342 else
343 ${SYSCTL} net.inet.ip.accept_sourceroute=0 > /dev/null
344 fi
337 if checkyesno accept_sourceroute; then
338 ropts_init inet
339 echo -n ' accept source routing=YES'
340 ${SYSCTL} net.inet.ip.accept_sourceroute=1 > /dev/null
341 else
342 ${SYSCTL} net.inet.ip.accept_sourceroute=0 > /dev/null
345 fi
346
347 if checkyesno arpproxy_all; then
348 ropts_init inet
349 echo -n ' ARP proxyall=YES'
350 ${SYSCTL} net.link.ether.inet.proxyall=1 > /dev/null
351 else
352 ${SYSCTL} net.link.ether.inet.proxyall=0 > /dev/null

--- 29 unchanged lines hidden ---
343 fi
344
345 if checkyesno arpproxy_all; then
346 ropts_init inet
347 echo -n ' ARP proxyall=YES'
348 ${SYSCTL} net.link.ether.inet.proxyall=1 > /dev/null
349 else
350 ${SYSCTL} net.link.ether.inet.proxyall=0 > /dev/null

--- 29 unchanged lines hidden ---