LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-03-2007, 11:00 PM   #1
methoxcy
Member
 
Registered: Dec 2007
Posts: 48

Rep: Reputation: 16
Smile Urgent!!!


mandriva proxy server

i have two NIC cards (eth0) and (eth1).

eth0 connected to switch which is windows terminal connecting to and eth1 connected to internet i can ping eth0 for lan connection but once i tried to connect to internet nothings happen what would i do??? PREROUTING??
 
Old 12-03-2007, 11:13 PM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
Urgent!!!
Cool... shall I send you a schedule of my fees?

I don't understand what you are saying, but you seem to be having trouble setting up a proxy server. Read through this tutorial and see if you cannot make your question clearer.
 
Old 12-04-2007, 12:40 AM   #3
methoxcy
Member
 
Registered: Dec 2007
Posts: 48

Original Poster
Rep: Reputation: 16
urgent

my linux have two network cards, the one is connection to switch that is connected to several pc(windows) and the other one is for internet. i can access my linux box thru network but if i try to use internet server not found. what should i do

Last edited by methoxcy; 12-04-2007 at 12:46 AM. Reason: missing words
 
Old 12-04-2007, 12:49 AM   #4
mat2ag
LQ Newbie
 
Registered: Aug 2002
Distribution: Slackware,Redhat
Posts: 17

Rep: Reputation: 0
Did you active packet forwarding (i.e. routing) on your box?

with something like this:
Quote:
echo "1" > /proc/sys/net/ipv4/ip_forward
 
Old 12-04-2007, 12:52 AM   #5
methoxcy
Member
 
Registered: Dec 2007
Posts: 48

Original Poster
Rep: Reputation: 16
already done my linux box can access internet but those several pc connected to linux not yet what should i do
 
Old 12-04-2007, 01:16 AM   #6
mat2ag
LQ Newbie
 
Registered: Aug 2002
Distribution: Slackware,Redhat
Posts: 17

Rep: Reputation: 0
did your clients have valid ip address? if not (I think ) you should do source natting on you linux box with such command:
Quote:
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
 
Old 12-04-2007, 01:26 AM   #7
methoxcy
Member
 
Registered: Dec 2007
Posts: 48

Original Poster
Rep: Reputation: 16
yes! all of them has a valid IPaddress. what should i do
 
Old 12-04-2007, 01:35 AM   #8
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Ahhh... you want to share your linux boxes internet connection with your LAN... that means you want to configure an internet gateway. You do this with IP forwarding in iptables.

http://users.pandora.be/mydotcom/how...uter/linux.htm
http://www.freesoftwaremagazine.com/...ternet_gateway

Post your iptables scrip and we can troubleshoot.
 
Old 12-04-2007, 02:01 AM   #9
mat2ag
LQ Newbie
 
Registered: Aug 2002
Distribution: Slackware,Redhat
Posts: 17

Rep: Reputation: 0
IP forwarding does not happen in iptables. iptables is only a packet inspecting subsystem. First answer, if your clients have valid ip address why do you want to use a linux box as a gateway? Second, if you want to do so you need some setting on your box and some setting on your provider gateway, it means that provider should route all packets of your class to your gateway and vice versa (i.e. they should set your gateway address as default gateway for your subnet.) it is better that set a pair of none valid ip address on your gateway and peer gateway only for routing purpose.
 
Old 12-04-2007, 02:02 AM   #10
methoxcy
Member
 
Registered: Dec 2007
Posts: 48

Original Poster
Rep: Reputation: 16
yes!!! i did it already guys thank you so much godbless and you rock!!!!

Last edited by methoxcy; 12-04-2007 at 02:06 AM. Reason: missing piece
 
Old 12-04-2007, 04:01 AM   #11
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
yes!!! i did it already guys thank you so much godbless and you rock!!!!
... cool! What did you end up doing?
 
Old 12-04-2007, 05:11 AM   #12
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
methoxcy, can you please us thread titles that describe your problem instead of "urgent". This helps increase the exposure of your thread.
 
Old 12-04-2007, 06:18 AM   #13
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
Your previous post also marked urgent. You were politely asked not to mark thread as urgent and yet you persist. This is extremely rude. Please do not mark thread urgent - they are not urgent to other users here.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
boot sector and lilo collapse !!!!! URGENT URGENT URGEN !!!!! frelihm Linux - Software 21 12-02-2009 11:21 AM
Urgent Question Regarding Urgent Questions! Need Help Now! Crashed_Again LQ Suggestions & Feedback 11 10-17-2007 09:07 PM
Urgent..Im Having A Nightmare..Urgent!!!! midgcool Linux - Software 41 11-30-2004 11:19 AM
Very Urgent Software Linux - Software 8 03-28-2004 10:02 PM
Urgent Urgent !!!! Mozilla Keeps All Your Deleted Emails !!!! odin123 Linux - Software 2 01-31-2004 03:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:35 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration