PDA

View Full Version : Connection Sharing


jez_jnr
22nd May 2004, 11:34 AM
im trying to setup a gateway on a fedora core installation...

i have made a new script called rc.ipmasq which is run through rc.local the scrip content is below:

#!/bin/sh

IPTABLES=/sbin/iptables

#All The lines below are NAT routing

# flush any old rules
$IPTABLES -F -t nat

# turn on NAT (IP masquerading for outgoing packets)
$IPTABLES -A POSTROUTING -t nat -o ippp0 -j MASQUERADE

# enable IP forwarding (of incoming packets)
echo 1 > /proc/sys/net/ipv4/ip_forward


i changed the ippp0 as my isdn connection is ippp0 and my ethernet connector is eth0

having done all this and set the gateway ip and linked the client to the gateway using 192.168.0.1 as the gateway IP i have also entered the correct DNS addresses. on the client fedora core installtion i can only ping IP addresses i cant access the internet..

any ideas would be gr8 !!

jez_jnr
22nd May 2004, 12:03 PM
hey its all sorted now by using firestarter which was suggested in another thread so cheers to the guy that mentioned it

ITS AMAZING !!

http://firestarter.sourceforge.net/

i hope it can help anyone else with the same problem..