You are not logged in.
Pages: 1
I have two LAN cards on my PC and I want to let my second PC to use network through the second LAN card with NAT, but I have no clue how to set it up... (My internet connection comes to eth0 and I want NAT interface on eth1(
My victim you are meant to be
No, you cannot hide nor flee
You know what I'm looking for
Pleasure your torture, I will endure...
Offline
One way is to use arno-iptables-firewall script from AUR. You get NAT and firewall up and going. http://wiki.archlinux.org/index.php/Fir … s_Firewall
Offline
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
Give what you have. To someone, it may be better than you dare to think.
Offline
And can I set an ip address on eth1 or it'll chose a random one and I should set the second machine to dhcp?
My victim you are meant to be
No, you cannot hide nor flee
You know what I'm looking for
Pleasure your torture, I will endure...
Offline
eth1 will have static ip. for e.g 192.168.0.1.
on the other computer you have the configure your network: ip 192.168.0.x, gw 192.168.0.1, nameserver copy from /etc/resolv.conf
Give what you have. To someone, it may be better than you dare to think.
Offline
Pages: 1