Difference between revisions of "OpenWRT IPv6: Konfigurasi"

From OnnoWiki
Jump to navigation Jump to search
Line 172: Line 172:
 
  option bssid '02:CA:FF:EE:BA:BE'
 
  option bssid '02:CA:FF:EE:BA:BE'
 
  option network 'MESH'
 
  option network 'MESH'
 +
 +
==/etc/sysctl.conf==
 +
 +
kernel.panic=3
 +
net.ipv4.conf.default.arp_ignore=1
 +
net.ipv4.conf.all.arp_ignore=1
 +
net.ipv4.ip_forward=1
 +
net.ipv4.icmp_echo_ignore_broadcasts=1
 +
net.ipv4.icmp_ignore_bogus_error_responses=1
 +
net.ipv4.tcp_ecn=0
 +
net.ipv4.tcp_fin_timeout=30
 +
net.ipv4.tcp_keepalive_time=120
 +
net.ipv4.tcp_syncookies=1
 +
net.ipv4.tcp_timestamps=1
 +
net.ipv4.tcp_sack=1
 +
net.ipv4.tcp_dsack=1
 +
 +
net.ipv6.conf.default.forwarding=1
 +
net.ipv6.conf.all.forwarding=1
 +
 +
net.netfilter.nf_conntrack_acct=1
 +
net.netfilter.nf_conntrack_checksum=0
 +
net.netfilter.nf_conntrack_max=16384
 +
net.netfilter.nf_conntrack_tcp_timeout_established=3600
 +
net.netfilter.nf_conntrack_udp_timeout=60
 +
net.netfilter.nf_conntrack_udp_timeout_stream=180
 +
 +
# disable bridge firewalling by default
 +
net.bridge.bridge-nf-call-arptables=0
 +
net.bridge.bridge-nf-call-ip6tables=0
 +
net.bridge.bridge-nf-call-iptables=0

Revision as of 05:31, 4 June 2013

/etc/config/6relayd

config server 'default' 
	list network 'lan' 
	option rd 'server'
	option dhcpv6 'server'
	option fallback_relay 'rd dhcpv6 ndp'
	option management_level '1'
	option compat_ula '1'
	option master 'henet'
	option always_rewrite_dns '1'
	option always_assume_default '1'


/etc/config/dhcp

config dnsmasq
	option domainneeded '1'
	option boguspriv '1'
	option filterwin2k '0'
	option localise_queries '1'
	option rebind_protection '1'
	option rebind_localhost '1'
	option local '/lan/'
	option domain 'lan'
	option expandhosts '1'
	option nonegcache '0'
	option authoritative '1'
	option readethers '1'
	option leasefile '/tmp/dhcp.leases'
	option resolvfile '/tmp/resolv.conf.auto'

config dhcp 'lan'
	option interface 'lan'
	option start '100'
	option limit '150'
	option leasetime '12h'
	option force '1'

config dhcp 'wan'
	option interface 'wan'
	option ignore '1'


/etc/config/radvd

config interface
	option interface 'lan'
	option AdvSendAdvert '1'
	list client 
	option ignore '0'
	option IgnoreIfMissing '1'
	option AdvSourceLLAddress '1'
	option AdvDefaultPreference 'medium'

config prefix
	option interface 'lan'
	option AdvOnLink '1'
	option AdvAutonomous '1'
	list prefix '2001:470:36:ab6::/64'
	option ignore '0'

config route
	option interface 'lan'
	list prefix '2001:470:36:ab6::/64'
	option ignore '0'

config rdnss
	option interface 'lan'
	list addr '2001:470:36:ab6::1/64'
	option ignore '0'

config dnssl
	option interface 'lan' 

list suffix

	option ignore '1'


/etc/config/network

config interface 'loopback'
	option ifname 'lo'
	option proto 'static'
	option ipaddr '127.0.0.1'
	option netmask '255.0.0.0'

config globals 'globals'
 	option ula_prefix 'fdde:f315:7672::/48'

config interface 'lan'
	option ifname 'eth0'
	option type 'bridge'
	option proto 'static'
	option netmask '255.255.255.0'
	option ip6assign '60'
	option ipaddr '192.168.0.222'
	option ip6addr '2001:470:36:ab6::1/64'

config interface 'wan'
	option ifname 'eth1'
	option proto 'dhcp'
	option macaddr '00:1E:EC:97:4D:C2'

config interface 'wan6'
	option ifname '@wan'
	option proto 'dhcpv6'

config switch
	option name 'switch0'
	option reset '1'
	option enable_vlan '1'

config switch_vlan
	option device 'switch0'
	option vlan '1'
	option ports '0 1 2 3 4 5'

config interface 'MESH'
	option proto 'none'

config interface 'henet'
	option proto '6in4'
	option peeraddr '216.218.221.42'
	option ip6addr '2001:470:35:ab6::2/64'
	option tunnelid '208951'
	option username 'tb51aa9310a105d0.19920640'
	option password 'ONNOWPURBO1781962'


/etc/config/system

config system
	option zonename 'Asia/Jakarta'
	option timezone 'WIT-7'
	option conloglevel '8'
	option cronloglevel '8'
	option hostname 'Linksys-WRT160NL'

config timeserver 'ntp'
	list server '0.openwrt.pool.ntp.org'
	list server '1.openwrt.pool.ntp.org'
	list server '2.openwrt.pool.ntp.org'
	list server '3.openwrt.pool.ntp.org'

config led 'led_wlan'
	option name 'WLAN'
	option sysfs 'wrt160nl:blue:wlan'
	option trigger 'phy0tpt'


/etc/config/wireless

config wifi-device 'radio0'
	option type 'mac80211'
	option hwmode '11ng'
	option path 'platform/ath9k'
	option htmode 'HT20'
	list ht_capab 'SHORT-GI-40'
	list ht_capab 'DSSS_CCK-40'
	option country 'US'
	option channel '1'
	option txpower '10'

config wifi-iface
	option device 'radio0'
	option encryption 'none'
	option ssid 'MESH'
	option mode 'adhoc'
	option bssid '02:CA:FF:EE:BA:BE'
	option network 'MESH'

/etc/sysctl.conf

kernel.panic=3
net.ipv4.conf.default.arp_ignore=1
net.ipv4.conf.all.arp_ignore=1
net.ipv4.ip_forward=1
net.ipv4.icmp_echo_ignore_broadcasts=1
net.ipv4.icmp_ignore_bogus_error_responses=1
net.ipv4.tcp_ecn=0
net.ipv4.tcp_fin_timeout=30
net.ipv4.tcp_keepalive_time=120
net.ipv4.tcp_syncookies=1
net.ipv4.tcp_timestamps=1
net.ipv4.tcp_sack=1
net.ipv4.tcp_dsack=1

net.ipv6.conf.default.forwarding=1
net.ipv6.conf.all.forwarding=1

net.netfilter.nf_conntrack_acct=1
net.netfilter.nf_conntrack_checksum=0
net.netfilter.nf_conntrack_max=16384
net.netfilter.nf_conntrack_tcp_timeout_established=3600
net.netfilter.nf_conntrack_udp_timeout=60
net.netfilter.nf_conntrack_udp_timeout_stream=180

# disable bridge firewalling by default
net.bridge.bridge-nf-call-arptables=0
net.bridge.bridge-nf-call-ip6tables=0
net.bridge.bridge-nf-call-iptables=0