diff options
Diffstat (limited to 'net-scripts/conf.d/net.example')
-rw-r--r-- | net-scripts/conf.d/net.example | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/net-scripts/conf.d/net.example b/net-scripts/conf.d/net.example index ebf1236..d637731 100644 --- a/net-scripts/conf.d/net.example +++ b/net-scripts/conf.d/net.example @@ -119,6 +119,13 @@ # "::/0" # IPv6 unicast #) +# If you're using iproute2 then you can also do policy routing. +# This is not available with ifconfig. +#rules_eth0=( +# "from 24.80.102.112/32 to 192.168.1.0/24 table localnet priority 100" +# "from 216.113.223.51/32 to 192.168.1.0/24 table localnet priority 100" +#) + # If a specified module fails (like dhcp - see below), you can specify a # fallback like so #fallback_eth0=( "192.168.0.2 netmask 255.255.255.0" ) @@ -396,6 +403,8 @@ #pppd_ppp0=( # "updetach" # WARNING: If you don't specify this then we will # # not wait for the actual PPP link to go up +# "maxfail 0" # WARNING: It's not recommended you use change this +# # if you don't specify maxfail then we assume 0 # "debug" # Enables syslog debugging # "noauth" # Do not require the peer to authenticate itself # "defaultroute" # Make this PPP interface the default route @@ -546,6 +555,9 @@ #----------------------------------------------------------------------------- # Tunnelling +# WARNING: For tunnelling it is highly recommended that you +# emerge sys-apps/iproute2 +# # For GRE tunnels #iptunnel_vpn0="mode gre remote 207.170.82.1 key 0xffffffff ttl 255" @@ -556,6 +568,19 @@ #config_vpn0=( "192.168.0.2 pointopoint 192.168.1.2" ) # ifconfig style #config_vpn0=( "192.168.0.2 peer 192.168.1.1" ) # iproute2 style +# 6to4 Tunnels allow IPv6 to work over IPv4 addresses, provided you +# have a non-private address configured on an interface. +# link_6to4="eth0" # Interface to base it's addresses on +# config_6to4=( "ip6to4" ) +# You may want to depend on eth0 like so +# depend_6to4() { +# need net.eth0 +# } +# To ensure that eth0 is configured before 6to4. Of course, the tunnel could be +# any name and this also works for any configured interface. +# NOTE: If you're not using iproute2 then your 6to4 tunnel has to be called +# sit0 - otherwise use a different name like 6to4 in the example above. + #----------------------------------------------------------------------------- # System # For configuring system specifics such as domain, dns, ntp and nis servers |