Brama sieciowa
Z wiki linux-user
Linia 1: | Linia 1: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[Category:Serwer]] | [[Category:Serwer]] | ||
== Brama sieciowa == | == Brama sieciowa == | ||
Linia 24: | Linia 15: | ||
− | == Udostępnianie połączenia internetowego ==Aby udostępnić nasze łącze innym komputerom w sieci musimy odpowiednio skonfigurować zapore systemu [[firewall|iptables]] Skonfigurowanie udostępnienia połączenia poprzez np interfejs eth1 musimy: | + | == Udostępnianie połączenia internetowego == |
+ | Aby udostępnić nasze łącze innym komputerom w sieci musimy odpowiednio skonfigurować zapore systemu [[firewall|iptables]] Skonfigurowanie udostępnienia połączenia poprzez np interfejs eth1 musimy: | ||
# service iptables stop | # service iptables stop | ||
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE | iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE | ||
Linia 89: | Linia 81: | ||
echo "4. Select the 'Gateway' tab in the TCP/IP properties dialog." | echo "4. Select the 'Gateway' tab in the TCP/IP properties dialog." | ||
echo "5. Enter $(ifconfig ${SHARE_IF} | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}') as the default gateway." | echo "5. Enter $(ifconfig ${SHARE_IF} | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}') as the default gateway." | ||
+ | |||
+ | <br /><google1 style="4"></google1> |