LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-15-2005, 09:52 AM   #1
bravo_veinticinco
LQ Newbie
 
Registered: Sep 2005
Posts: 1

Rep: Reputation: 0
problems routing with single NIC


Hello guys:
I am running a Fedora Core 4 that I want to set up as a packet shaper (bandwidth shaper).

First of all, I want to configure it as a router, to have all the LAN traffic passing through the Fedora machine (configuring the Fedora machine as gateway for the other LAN computers)
but the problem is that this machine has only one (WIFI) network card.

1.- I have a DSL-router with an internal IP 172.16.0.200

My Fedora machine has:

wlan0 Link encap:Ethernet HWaddr 00:4F:62:00:B3:CE
inet addr:172.16.0.220 Bcast:172.16.0.255 Mask:255.255.255.0
inet6 addr: fe80::24f:62ff:fe00:b3ce/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12662332 errors:0 dropped:0 overruns:0 frame:0
TX packets:12606640 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3668574360 (3.4 GiB) TX bytes:3690491544 (3.4 GiB)
Interrupt:11 Memory:d8020000-d8022000

wlan0:1 Link encap:Ethernet HWaddr 00:4F:62:00:B3:CE
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:11 Memory:d8020000-d8022000

What I want to do is configure the LAN computers in the 192.168.1.0/24 network and use 192.168.1.1 (the Fedora machine) as gateway.

I activated IP_FORWARDING but doesn't seem to work (what the *** am I doing wrong?).
I tried both the 'echo 1 > /proc/sys/net/ipv4/ip_forward' and the "net.inet.ip.forwarding=1" in the /etc/sysctl.conf file.

Any hints? After reading and trying so many things I am lost.


I tried firestarter but doesn't sees virtual devices (such as 'wlan0:1')

BTW: how can I try if routing works properly?
I mean, what tests could I do from the command line to see if routing is working. This is beacause usually I have no access to other computers in the LAN (where I could configure the gateway and check if it works).

For example, if I telnet my machine from Internet (my office), I have the router forwarding common ports to my Fedora, so I can access via ssh or vnc.
From there I do a telnet to itself using the LAN IP address (telnet 192.168.1.1) and I get in.

If I do 'ping www_yahoo_com' it resolves the IP and pings correctly.
If I do a traceroute to www_yahoo_com I get nothing...

I think this proves my setup is not working properly.

Any advices are welcome.
 
Old 12-16-2005, 03:30 AM   #2
abakali
Member
 
Registered: Dec 2005
Location: karachi
Distribution: RedHat
Posts: 75

Rep: Reputation: 15
you have problem with NAT check this post about firewall
http://www.linuxquestions.org/questi...d.php?t=391669
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Max # of IPs on a single NIC Risc91 Red Hat 3 03-14-2005 03:32 PM
setting muliple IP addresses on Single NIC cranium2004 Linux - Networking 1 02-08-2005 05:55 AM
Single NIC of Reverse Proxy Natterjack Toad Linux - Networking 0 10-28-2004 03:08 AM
how to configure firewall on single nic RajaRC Linux - Networking 3 10-15-2004 06:16 AM
Multiple addresses for a single NIC grub Programming 1 08-04-2003 02:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration