"Television has done much for psychiatry by spreading information about it, as well as contributing to the need for it." -- Alfred Hitchcock
[search=internet delen linux]
ok vooruit, nog een tip: iptables -A POSTROUTING -t nat -s <localnet>/<net> -o eth0 -j SNAT --to-source <inetip>
ok vooruit, nog een tip: iptables -A POSTROUTING -t nat -s <localnet>/<net> -o eth0 -j SNAT --to-source <inetip>
iptables -A POSTROUTING -t nat -s 192.168.0.0/10 -o eth0 -j SNAT --to-source 10.0.0.138
iptables -A POSTROUTING -t nat -s 192.168.0.0/10 -o eth0 -j SNAT --to-source 192.168.0.1
iptables -A POSTROUTING -t nat -s 192.168.0.0/10 -o eth0 -j SNAT --to-source 10.0.0.150
iptables -A POSTROUTING -t nat -s 192.168.0.0/10 -o eth0 -j SNAT --to-source 10.0.0.255
ik weet niet echt wat ik bij <inetip> moet invullen
server IP adres: 192.168.0.1
netwerk 192.168.0.2 & 192.168.0.3
"Television has done much for psychiatry by spreading information about it, as well as contributing to the need for it." -- Alfred Hitchcock
inetip=je externe internet IP, dus het IP wat je van je provider hebt gekregen.
Of gebruik je nog pptp? In dat geval moet je even de iptables nat tabel leeg maken (-F) en de volgende regel toevoegen:
iptables -A POSTROUTING -t nat -o eth0 -s 192.168.0.0/10 -j MASQUARADE
Of gebruik je nog pptp? In dat geval moet je even de iptables nat tabel leeg maken (-F) en de volgende regel toevoegen:
iptables -A POSTROUTING -t nat -o eth0 -s 192.168.0.0/10 -j MASQUARADE