peon can you help me use iptables firestarter not working for me i have two pcs i use a usb modem i have even tried the ics built into mandriva i got a connection between the two pcs but then i couldnt browse on either
Ok I assume your setups are like such
Clients ----> Linux Gateway ----> Internet
If your clients can ping your gateway, statically set your client pc ip configuration so that the DNS and default gateway are your Linux boxes. Dont worry about iptables and firestarter configuration just yet.
Ok I got a server with Ubuntu 8.10, That I would like to use as file server as well as a 3G internet connection to the other windows computers on the network.
Dumb question Uli but you not talking about LTS Ubuntu 8.10 now? Once again, test of your clients can ping their linux box. If they can set their DNS and default gateway to use the linux box. Currently you have a DSL router thats probably giving out DHCP ip's.
Also you've made sure the server can connect to the internet via 3G? So no problems there? If not then its just a routing issue. Critically make sure IP forwarding is enabled.
_____________________________________
IP Forwarding
Run as root
sysctl -w net.ipv4.ip_forward=1
To enable it in system startup, edit the file /etc/sysctl.conf and set
net.ipv4.ip_forward = 1
_____________________________________
Moving onto IPTABLES
Lets flush out the tables (Ubuntu only)
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
Run command as root
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
service iptables save
_____________________________________
Give it a shot. I would strongly advise first testing and pinging and finding where the communications stop before making changes to IPtables that could take you backwards.