 |
 |
 |
 |
| Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc. |

11th January 2006, 11:14 AM
|
|
Registered User
|
|
Join Date: Dec 2005
Age: 26
Posts: 30

|
|
internet sharing
Hi,
I want to share my internet connection with my room mate (i have two ethernet cards in my pc). I know that this can be done in Windoze by checking a box that says "Allow other network users to connect to network through this computer`s internet connection" and configuring the other pc`s ip and gateway. Now i would like to do the same thing in linux but I don`t have any idea on what to do. Any help would be appreciated.
I have dual boot FC4/Win XP installed on my box and my room mate has only Windoze.
Sorry if this is something very obvious but i had just recently switched to Linux.
__________________
In a world without walls or fences, what use do we have for Windows or Gates? :D
|

11th January 2006, 04:56 PM
|
 |
"Fixed" by (vague) request
|
|
Join Date: Oct 2005
Location: GMT+ 1
Posts: 2,950

|
|
|
Use firestarter or another firewall tool to configure iptables for you.
|

11th January 2006, 05:03 PM
|
|
Registered User
|
|
Join Date: Dec 2005
Age: 26
Posts: 30

|
|
|
uhm...i`m not sure what you are talking about... the thing is that i have a computer running linux and i have one internet line. I have two ethernet cards, and I want to share that connection with the windoze box without having to buy a switch or hub.
I don`t know how to configure iptables, and i`m not even sure what iptables is.
Sebastian.
__________________
In a world without walls or fences, what use do we have for Windows or Gates? :D
|

11th January 2006, 05:36 PM
|
 |
Registered User
|
|
Join Date: Dec 2005
Location: Pennsylvania
Age: 26
Posts: 8

|
|
|
Have you tried using a router? Just a simple solution you could try. XD
|

11th January 2006, 06:58 PM
|
 |
"Fixed" by (vague) request
|
|
Join Date: Oct 2005
Location: GMT+ 1
Posts: 2,950

|
|
Ok. So, you can buy a crossover cable which is an inexpensive piece of junk with inverted wires that will allow you to connect your mate's machine to one of your NICs without the need of a hub/switch/router. Then install firestarter: as root, open a terminal window and type:
Code:
yum -y install firestarter
Firestarter's a tool that will allow you to configure network connection sharing pretty much as you would do on a windoze box.
|

11th January 2006, 10:30 PM
|
|
Registered User
|
|
Join Date: Dec 2005
Age: 26
Posts: 30

|
|
Ok...thanks alot, it works! I would have never figured by my own that you can do this from firestarter, and that easily. Thank you, again.  )
__________________
In a world without walls or fences, what use do we have for Windows or Gates? :D
|

21st January 2006, 11:00 PM
|
 |
Registered User
|
|
Join Date: Jul 2005
Location: Vulcan
Posts: 284

|
|
|
Hi,
Question: when I enable the firewall on firestarter should I disable the firewall that comes with fedora?
If so, when I disable I can't start iptables and receive an error.
thanks
__________________
P.S. Never take candy from strangers... money is ok, but not candy.
FC 12 - 64 bits
Dell Vostro 1710 | Intel Core 2 Duo T9500 @ 2.60GHz | DDR 2GB | nVidia GeForce 8600M GS 512MB | WLAN Broadcom BCM4328 802.11a/b/g/n | Realtek RTL8111/8168B PCI Express Gigabit Ethernet controller | Dell Wireless 360 Bluetooth | Seagate 5400rpm 160GB | Western Digital 5400rpm 320GB
Maemo 5
Nokia N900 | ARM Cortex A8 600 MHz | PowerVR SGX graphics | 32GB | Designed in Finland
|

22nd January 2006, 02:17 PM
|
 |
"Fixed" by (vague) request
|
|
Join Date: Oct 2005
Location: GMT+ 1
Posts: 2,950

|
|
Quote:
|
Originally Posted by Trek1701
Question: when I enable the firewall on firestarter should I disable the firewall that comes with fedora?
|
Yes, the tools are mutually exclusive.
|

23rd January 2006, 12:07 PM
|
|
Registered User
|
|
Join Date: Jan 2006
Posts: 20

|
|
|
you may try to edit rc.local in /etc/ folder to append these lines
# Load iptables NAT module when required
modprobe iptable_nat
## Clear NAT IPTables
iptables -t nat --flush
## Enable Nating
iptables -t nat -A POSTROUTING -o EXTETH -s INTERNALNET -d 0/0 -j MASQUERADE
EXTETH: is the interface wich connected to the internet.
INTERNALNET: the internal network subnet such as (192.168.1.0/24)
and
edit /etc/sysctl.conf by set the key net.ipv4.ip_forward to 1
then restart the linux box.
|

23rd January 2006, 08:21 PM
|
 |
Registered User
|
|
Join Date: Jul 2005
Location: Vulcan
Posts: 284

|
|
|
Thanks for the reply.
Ok, I have Firestarter orking and with the "share internet" option active.
I have a second box with dual boot FC4/XP. I'm able to share my files between the 2 boxes using samba.
However, even using firestarter in the main box, I don't get internet on the second box on both FC4 and XP.
As I said previously, I'm with the fedora's firewall disabled and when I try to start iptables I get an error ("iptables failed").
Do I really need of iptables? Is this the problem with sharing the internet?
Trek1701
__________________
P.S. Never take candy from strangers... money is ok, but not candy.
FC 12 - 64 bits
Dell Vostro 1710 | Intel Core 2 Duo T9500 @ 2.60GHz | DDR 2GB | nVidia GeForce 8600M GS 512MB | WLAN Broadcom BCM4328 802.11a/b/g/n | Realtek RTL8111/8168B PCI Express Gigabit Ethernet controller | Dell Wireless 360 Bluetooth | Seagate 5400rpm 160GB | Western Digital 5400rpm 320GB
Maemo 5
Nokia N900 | ARM Cortex A8 600 MHz | PowerVR SGX graphics | 32GB | Designed in Finland
|

23rd January 2006, 10:15 PM
|
 |
Registered User
|
|
Join Date: Jul 2005
Location: Vulcan
Posts: 284

|
|
AHanbali,
I've disabled firestarter, enabled fedora's firewall and edited "rc.local" as you said and aldo enabled the "ip forward" but my second box can't conect to internet...
__________________
P.S. Never take candy from strangers... money is ok, but not candy.
FC 12 - 64 bits
Dell Vostro 1710 | Intel Core 2 Duo T9500 @ 2.60GHz | DDR 2GB | nVidia GeForce 8600M GS 512MB | WLAN Broadcom BCM4328 802.11a/b/g/n | Realtek RTL8111/8168B PCI Express Gigabit Ethernet controller | Dell Wireless 360 Bluetooth | Seagate 5400rpm 160GB | Western Digital 5400rpm 320GB
Maemo 5
Nokia N900 | ARM Cortex A8 600 MHz | PowerVR SGX graphics | 32GB | Designed in Finland
|

24th January 2006, 09:00 AM
|
|
Registered User
|
|
Join Date: Jan 2006
Posts: 20

|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 23:39 (Saturday, 18-05-2013)
|
|
 |
 |
 |
 |
|
|