Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 7th July 2011, 05:14 PM
m6aUdS Offline
Registered User
 
Join Date: Jul 2011
Posts: 13
linuxchrome
Unhappy [SOLVED]Unable to setup fedora as gateway properly

Hi!

I am trying to make my fedora 15 my gateway instead of my old D-Link, but I can't seem to get it working.

Here is my ifconfig
Quote:
em1 Link encap:Ethernet HWaddr 00:0F:FE:79:28:0D
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::20f:feff:fe79:280d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:270089 errors:0 dropped:0 overruns:0 frame:0
TX packets:262100 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:37871486 (36.1 MiB) TX bytes:35214898 (33.5 MiB)
Interrupt:19 Memory:f0500000-f0520000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:80042 errors:0 dropped:0 overruns:0 frame:0
TX packets:80042 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:22432199 (21.3 MiB) TX bytes:22432199 (21.3 MiB)

p1p2 Link encap:Ethernet HWaddr D8:5D:4C:80:9D:74
inet addr:206.167.183.120 Bcast:206.167.183.255 Mask:255.255.255.0
inet6 addr: fe80::da5d:4cff:fe80:9d74/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8676 errors:0 dropped:0 overruns:0 frame:0
TX packets:7111 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:8588944 (8.1 MiB) TX bytes:884011 (863.2 KiB)
Interrupt:20 Base address:0x2800

p1p3 Link encap:Ethernet HWaddr 00:A1:B0:00:00:7B
inet6 addr: fe80::2a1:b0ff:fe00:7b/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:35 errors:0 dropped:0 overruns:0 frame:0
TX packets:113 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5498 (5.3 KiB) TX bytes:36889 (36.0 KiB)
Interrupt:16 Base address:0x1000

wlan0 Link encap:Ethernet HWaddr E0:69:95:44:85:2E
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
As you seen, em1 is my internal interface and p1p2 is my external interface.

Here are my iptables supposed to masquerade:
Quote:
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
And this my "route -n"
Quote:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
206.167.183.250 0.0.0.0 255.255.255.255 UH 0 0 0 em1
206.167.183.0 0.0.0.0 255.255.255.0 U 1 0 0 p1p2
192.168.0.0 0.0.0.0 255.255.255.0 U 1 0 0 em1
0.0.0.0 206.167.183.250 0.0.0.0 UG 0 0 0 em1
0.0.0.0 206.167.183.250 0.0.0.0 UG 0 0 0 p1p2
Problem is:
As soon as I turn on em1, the computer looses the Internet. If em1 is down, Internet is working fine on the box.

Here is my "route -n" with em1 down:
Quote:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
206.167.183.0 0.0.0.0 255.255.255.0 U 1 0 0 p1p2
0.0.0.0 206.167.183.250 0.0.0.0 UG 0 0 0 p1p2
Any idea why my configuration does not work?

Last edited by m6aUdS; 11th July 2011 at 04:27 AM. Reason: Solved!
Reply With Quote
  #2  
Old 7th July 2011, 05:53 PM
Keldorn's Avatar
Keldorn Offline
Registered User
 
Join Date: Jun 2008
Location: Russia
Age: 25
Posts: 515
linuxchrome
Re: Unable to setup fedora as gateway properly

Hi!
Quote:
As soon as I turn on em1, the computer looses the Internet. If em1 is down, Internet is working fine on the box.
How you turning in on?
Reply With Quote
  #3  
Old 7th July 2011, 06:20 PM
m6aUdS Offline
Registered User
 
Join Date: Jul 2011
Posts: 13
linuxchrome
Re: Unable to setup fedora as gateway properly

I turn it on with fedora's GUI (up-right of screen) which is shortcut for Network Settings.

in [Options]->[IPv4 Settings] I set:

Method: Manual

Addresses:
Address | Netmask | Gateway
192.168.0.1 | 255.255.255.0 | 0.0.0.0
Reply With Quote
  #4  
Old 7th July 2011, 07:54 PM
Keldorn's Avatar
Keldorn Offline
Registered User
 
Join Date: Jun 2008
Location: Russia
Age: 25
Posts: 515
linuxchrome
Re: Unable to setup fedora as gateway properly

Oh, my...
recheck yours default route after you doing that.
Reply With Quote
  #5  
Old 8th July 2011, 11:05 PM
m6aUdS Offline
Registered User
 
Join Date: Jul 2011
Posts: 13
linuxchrome
Re: Unable to setup fedora as gateway properly

Quote:
Originally Posted by Keldorn View Post
Oh, my...
recheck yours default route after you doing that.
The routes stay the same as in the example of "route -n" I gave...

Thanks for the hint though...
Reply With Quote
  #6  
Old 11th July 2011, 04:26 AM
m6aUdS Offline
Registered User
 
Join Date: Jul 2011
Posts: 13
linuxchrome
Re: Unable to setup fedora as gateway properly

YEAH I got it!

I followed this thread http://forums.fedoraforum.org/showthread.php?t=225778

The hint was that the network manager was making em1 steal the default route. I just checked 'Use this connection only for resources on its network' in the nm and magic! It work perfectly!

Now I just have to setup a decent firewall ;-)
Reply With Quote
Reply

Tags
fedora, gateway, properly, setup, unable

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to setup dsl connection in KDE fedora 15 akdroid Servers & Networking 3 21st June 2011 03:55 PM
How to properly revert my fedora 10 pulseaudio setup to the fedora 9 version Kobra Stryke Using Fedora 1 22nd April 2009 11:47 PM
no setup agent and unable to log into Fedora 10 lmn Installation and Live Media 3 28th February 2009 09:56 PM
2 NIC Gateway Setup Prizzle Servers & Networking 9 15th December 2006 12:24 PM
how to setup fc4 as gateway with 1 NIC? jwan Servers & Networking 10 1st March 2006 08:33 AM


Current GMT-time: 11:33 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat