Networking - Ip masquerading help

apoptosis - 30.08.2006, 07:33 Uhr
Titel: Ip masquerading help
Hi, Im new to linux and having trouble with this: http://kanotix.com/FAQ-id_cat-23.html the client connection isn't working. Well, it kinda works....my connection just times out. Anyone know how to fix this?
ockham23 - 30.08.2006, 09:28 Uhr
Titel: RE: Ip masquerading help
Here's what I do.
On the server
- edit dnsmasq.conf as described in the FAQ,
- run netcardconfig and assign a static IP address to the network card (e.g.,, confirm default values for network mask and broadcast, but delete default values for gateway and nameserver, these fields must be empty,
- start dhcp server /etc/init.d/dnsmasq start,
- enable IP forwarding/masquerading.
The appropriate commands are:
mcedit /etc/dnsmasq.conf
/etc/init.d/dnsmasq start

Important: By default, masquerade will forward client requests to interface ppp0. If you use another interface to connect to the Internet (e.g., eth1), you must edit the script and replace "ppp0" with "eth1".
mcedit /usr/sbin/masquerade

On the client just run netcardconfig and set the network card to use DHCP.
apoptosis - 30.08.2006, 09:55 Uhr
Titel: RE: Ip masquerading help
Thanks a lot! I needed to edit the masquerade script to the correct interface.
Alle Zeiten sind GMT + 1 Stunde
PNphpBB2 © 2003-2007