Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 10th April 2007, 20:03
meomike2000 meomike2000 is offline
Member
 
Join Date: Apr 2007
Posts: 39
Thanks: 14
Thanked 0 Times in 0 Posts
Default need help with ip tables in ubuntu

see post below falko's please, thank u



i need help trying to set up static routes for a ubuntu box that i am trying to use to learn more about linux and the command line. I really dont just want to follow a how-to. I would like to learn more about how to do this. Can somebody lead me to some good info on this that will not be just "cut and paste" or "fill in the blanks". I can do that fine. I really wish to learn.
thanks in advance,
mike

Last edited by meomike2000; 13th April 2007 at 05:58.
Reply With Quote
Sponsored Links
  #2  
Old 11th April 2007, 17:35
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

What exactly do you want to do?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 12th April 2007, 00:30
meomike2000 meomike2000 is offline
Member
 
Join Date: Apr 2007
Posts: 39
Thanks: 14
Thanked 0 Times in 0 Posts
 
Default what i am trying to do

THIS WILL BE LONG SO PLZ BEAR WITH ME ON IT!!!!!!

well i am trying to set up the ubuntu box to basicaly become a router for my network.
i now it isnt good for security reasons, but i have also setup samba to be the master domain controller with file shares.

once again this is just for a learning experience!!!

i have a windows xp computer set up as the main gateway.(internet feed)
it supplies an address to the ubuntu box via dhcp (eth0) as would my cable company.

my clients are all set up with static ip.
they connect to eth1 which also has a static ip.

i can log onto my profiles from all the client computers behind the ubuntu box just fine.

i can ping all clients from ubuntu box, problem is i can not get none of the client computers to internet or to the xp machine(main internet feed).
although the ubuntu box can reach the internet so i know that part is right.

problem i have is that i can not figure out how to setup static route for this to happen.

this is what i have come up with:
file /etc/network/interfaces

code:
#test1
#eth0 dhcp internet
#eth1 static network

auto lo eth0 eth1

#loopback
iface lo inet loopback

#internet feed
iface eth0 inet dhcp

#network
iface eth1 inet static
address 192.168.x.x
netmask 255.255.255.0
broadcast 192.168.x.x (same as address, not sure what broadcast is for)
post-up /etc/routes.sh

#end


then i have setup the file
/etc/routes.sh

code:
#test routes1
#eth0 dhcp internetfeed
#eth1 192.168.x.x network

#flush out default route for eth1
ip route flush dev eth1

#add correct routes
#send all local 192.x.x.x traffic to network via eth1
ip route add to 192.168.x.x/24 dev eth1

#send all other traffic to internet via eth0
ip route add to 0/0 dev eth0

#end

i have set permissins for /etc/routes.sh with
code:
chmod 755 routes.sh
(not sure if that is right or not)

i do not really know what the broadcast command does in /etc/network/interfaces or what it should be used for.
not really sure any of this is right or not.
can u give me some advice or a link to a place where i can do some research on this. The simpler to understand the better(need plain english explanations)

thanks in advance,
mike
Reply With Quote
Reply

Bookmarks

Thread Tools
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
About installing ddclient satimis Server Operation 32 21st December 2006 04:51
Log for Debugging jwan Installation/Configuration 5 27th October 2006 15:34
Ubuntu setup using SSH LuisC-SM HOWTO-Related Questions 9 16th April 2006 17:11
Is there a testing procedure for ISPConfig? deezone Installation/Configuration 14 22nd January 2006 20:41
mysqlcheck has found corrupt tables m u r Installation/Configuration 1 18th August 2005 11:47


All times are GMT +2. The time now is 13:14.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.