| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision |
| hu:doc:uci:network [2018/03/03 20:56] – ↷ Links adapted because of a move operation bobafetthotmail | hu:doc:uci:network [2018/09/16 11:45] – moving links before article move operation bobafetthotmail |
|---|
| |
| ==== Interfészek ==== | ==== Interfészek ==== |
| Az ''interface'' típusú szekciók meghatározzák a logikai hálózatok számára az IP-cím beállításokat, [[hu:doc:uci:network#álnevek|álneveket]], [[hu:doc:uci:network#ipv4.útvonalak|útvonalakat]], fizikai interfészneveket és [[doc:uci:firewall#zones|tűzfal szabályokat]] - ezek központi szerepet játszanak az OpenWRT konfigurációjának felépítésében. | Az ''interface'' típusú szekciók meghatározzák a logikai hálózatok számára az IP-cím beállításokat, [[hu:doc:uci:network#álnevek|álneveket]], [[hu:doc:uci:network#ipv4.útvonalak|útvonalakat]], fizikai interfészneveket és [[inbox:firewall:firewall3:fw3_network|tűzfal szabályokat]] - ezek központi szerepet játszanak az OpenWRT konfigurációjának felépítésében. |
| Egy interfész minimális meghatározása a következő sorokat tartalmazza: | Egy interfész minimális meghatározása a következő sorokat tartalmazza: |
| |
| |
| :!: Az ''odhcp6c'' csomagot telepíteni kell a dhcpv6 használatához. | :!: Az ''odhcp6c'' csomagot telepíteni kell a dhcpv6 használatához. |
| További információk az [[doc:uci:network#ipv6.routes|ipv6.routes]] oldalon. | További információk az [[docs:guide-user:network:routes_configuration#ipv6_routes|ipv6.routes]] oldalon. |
| |
| === Protocol "ppp" (PPP over Modem) === | === Protocol "ppp" (PPP over Modem) === |
| === Protocol "3g" (PPP over EV-DO, CDMA, UMTS vagy GPRS) === | === Protocol "3g" (PPP over EV-DO, CDMA, UMTS vagy GPRS) === |
| |
| :!: A ''comgt'' csomagot telepíteni kell 3G használatához. további információk a [[docs:guide-user:network:wan:3gdongle]] oldalon. | :!: A ''comgt'' csomagot telepíteni kell 3G használatához. további információk a [[docs:guide-user:network:wan:wwan:3gdongle]] oldalon. |
| |
| ^ Név ^ Típus ^ Szükséges ^ Alapértelmezett ^ Leírás ^ | ^ Név ^ Típus ^ Szükséges ^ Alapértelmezett ^ Leírás ^ |
| === Protocol "pptp" (Point-to-Point Tunneling Protocol) === | === Protocol "pptp" (Point-to-Point Tunneling Protocol) === |
| |
| További információk az [[doc:uci:network#protocol.pptp.point-to-point.tunneling.protocol|protocol.pptp.point-to-point.tunneling.protocol]] oldalon. | További információk az [[docs:guide-user:network:tunneling_interface_protocols#protocol_pptp_point-to-point_tunneling_protocol|protocol.pptp.point-to-point.tunneling.protocol]] oldalon. |
| |
| === Protocol "6in4" (IPv6-in-IPv4 Tunnel) === | === Protocol "6in4" (IPv6-in-IPv4 Tunnel) === |
| |
| További információk az [[doc:uci:network#protocol.6in4.ipv6-in-ipv4.tunnel|protocol.6in4.ipv6-in-ipv4.tunnel]] oldalon. | További információk az [[docs:guide-user:network:ipv6_ipv4_transitioning#protocol_6to4_ipv6-in-ipv4_tunnel|protocol.6in4.ipv6-in-ipv4.tunnel]] oldalon. |
| |
| |
| === Protocol "6to4" (IPv6-in-IPv4 Tunnel) === | === Protocol "6to4" (IPv6-in-IPv4 Tunnel) === |
| |
| További információk az [[doc:uci:network#protocol.6to4.ipv6-in-ipv4.tunnel|protocol.6to4.ipv6-in-ipv4.tunnel]] oldalon. | További információk az [[docs:guide-user:network:ipv6_ipv4_transitioning#protocol_6to4_ipv6-in-ipv4_tunnel|protocol.6to4.ipv6-in-ipv4.tunnel]] oldalon. |
| |
| |
| otherwise [[doc/uci/firewall#forwardings|unidirectional forwarding rules]] will not work. | otherwise [[doc/uci/firewall#forwardings|unidirectional forwarding rules]] will not work. |
| |
| :!: Don't forget to set up [[doc:uci:firewall#forwarding.ipv6.tunnel.traffic|forwarding rules]] between the LAN and the tunnel if you want to route IPv6 traffic between them. | :!: Don't forget to set up [[inbox:firewall:fw3_configurations:fw3_ipv6_examples#Forwarding_IPv6_tunnel_traffic |forwarding rules]] between the LAN and the tunnel if you want to route IPv6 traffic between them. |
| === Setup behind one-to-one NAT === | === Setup behind one-to-one NAT === |
| |
| If [[http://checkip.dyndns.org/|your public IP]], e.g. ''178.24.115.19'', is not matching the IP address on your WAN interface, your ISP is probably using [[http://shorewall.net/NAT.htm#One-to-one|one-to-one NAT]] (aka [[http://en.wikipedia.org/wiki/Network_address_translation#Methods_of_Port_translation|full-cone NAT]]) and you won't be able to establish static [[doc:uci:network#static.ipv6-in-ipv4.tunnel|IPv6-in-IPv4 tunnel]]. IP address of your WAN interface can be obtained with the following command: | If [[http://checkip.dyndns.org/|your public IP]], e.g. ''178.24.115.19'', is not matching the IP address on your WAN interface, your ISP is probably using [[http://shorewall.net/NAT.htm#One-to-one|one-to-one NAT]] (aka [[http://en.wikipedia.org/wiki/Network_address_translation#Methods_of_Port_translation|full-cone NAT]]) and you won't be able to establish static [[docs:guide-user:network:tunneling_interface_protocols#static_ipv6-in-ipv4_tunnel|IPv6-in-IPv4 tunnel]]. IP address of your WAN interface can be obtained with the following command: |
| |
| * Backfire <code>uci -P/var/state get network.wan.ipaddr</code> | * Backfire <code>uci -P/var/state get network.wan.ipaddr</code> |
| * Trunk/Attitude Adjustment <code>. /lib/functions/network.sh; network_get_ipaddr ip wan; echo $ip</code> | * Trunk/Attitude Adjustment <code>. /lib/functions/network.sh; network_get_ipaddr ip wan; echo $ip</code> |
| |
| If this is your case you should fill the WAN IP address into ''ipaddr'' option instead of your actual public IP that might have been provided to [[http://he.net/|Hurricane Electric]] during tunnel creation.((You should always use your public IP while creating Hurricane Electric tunnel, so don't change it just because you are behind one-to-one NAT.)) Or you may completely omit the [[doc:uci:network#protocol.6in4.ipv6-in-ipv4.tunnel|optional]] ''ipaddr'' option and let auto configuration to handle the correct IP. (FIXME Auto configuration is vague. Is ''uci'' handling this case?) That would be preferred solution if your WAN IP is dynamic (i.e. obtained via DHCP) or you are not sure. Example of ''/etc/config/network'' entry: | If this is your case you should fill the WAN IP address into ''ipaddr'' option instead of your actual public IP that might have been provided to [[http://he.net/|Hurricane Electric]] during tunnel creation.((You should always use your public IP while creating Hurricane Electric tunnel, so don't change it just because you are behind one-to-one NAT.)) Or you may completely omit the [[docs:guide-user:network:ipv6_ipv4_transitioning#protocol_6to4_ipv6-in-ipv4_tunnel|optional]] ''ipaddr'' option and let auto configuration to handle the correct IP. (FIXME Auto configuration is vague. Is ''uci'' handling this case?) That would be preferred solution if your WAN IP is dynamic (i.e. obtained via DHCP) or you are not sure. Example of ''/etc/config/network'' entry: |
| |
| <code> | <code> |
| </code> | </code> |
| |
| **Note:** you could probably try to define [[doc:uci:network#aliases|alias]] for WAN interface with your public IP address. Then you could use your public IP in ''ipaddr'' option and system would find its way to your WAN interface that has only private IP address because of the one-to-one NAT. (FIXME However, it didn't really worked for me. I got this advice on IRC and it looks reasonable, thats why I put it here anyway. If it was **not** supposed to fix it, just delete this note.) | **Note:** you could probably try to define [[docs:guide-user:network:network_interface_alias|alias]] for WAN interface with your public IP address. Then you could use your public IP in ''ipaddr'' option and system would find its way to your WAN interface that has only private IP address because of the one-to-one NAT. (FIXME However, it didn't really worked for me. I got this advice on IRC and it looks reasonable, thats why I put it here anyway. If it was **not** supposed to fix it, just delete this note.) |
| |
| ==== Dynamic IPv6-in-IPv4 tunnel (HE.net only) ==== | ==== Dynamic IPv6-in-IPv4 tunnel (HE.net only) ==== |