LinuxQuestions.org
Visit Jeremy's Blog.
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 09-26-2005, 07:58 AM   #1
guruliving
LQ Newbie
 
Registered: Sep 2005
Location: India
Posts: 1

Rep: Reputation: 0
Need help 4 setting NAT


Dear Linux Members,

I need your help regarding Internet Connection Sharing using Fedora core 2.6.11-1.1369-FC4.

I am already sharing my wireless LG RD2030 CDMA phone in my Win Xp Pro system and my client able to share the connection.

I tried to connect my wireless LG RD2030 CDMA phone through script based dialing in Fedora and I am able to connect and browse internet. The script is has been given by our ISP. Normally the phone is not deducted in fedora. The phone is connected to PC's USB port. I manually gave /dev/ttyUSB0 while running the script.

I assigned 192.168.0.1 to my Fedora server ip and subnetmask is 255.255.255.0

I assigned static IP 192.168.0.110 to 192.168.0.120 to my winxp client and subnet mask is 255.255.255.0 and default gateway is 192.168.0.1 and preferred DNS is 192.168.0.1. Both my client and fedora server can able to ping each other. But xpclients not able to share the internet connection.

I already tried everything but everyone on net saying different setting for setting NAT.

My setting is
ISP <--> LG RD2030 CDMA Phone <--> Fedora Core Linux Server <--> 1NIC <--> XP Clients

I used the setting as specified in fedoranews dot org website

iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
service iptables save
echo "1" > /proc/sys/net/ipv4/ip_forward

and i changed the value
/etc/sysctl.conf changing net.ipv4.ip_forward = 0 to 1

Because I assigned static IP in both fedora server and xp client. I think the fedora server no need for running DHCP server. so I skip doing settting on DHCP server. I don't know weather i must run DNS server or not. If so guide me how to setup DNS server for my settings. And I need step by step approach to sharing Internet Connection And I am a beginner to linux.


Thank you and expecting your early reply,
K.Guru.
 
Old 09-27-2005, 01:24 AM   #2
lanmanners
LQ Newbie
 
Registered: Jul 2004
Posts: 26

Rep: Reputation: 15
Re: Need help 4 setting NAT

Guru,

Can you tell us the routing table that you have?

When you are connected to the internet, type in

Code:
# route
to get the routing table and paste the output here

LM


Quote:
Originally posted by guruliving
Dear Linux Members,

I need your help regarding Internet Connection Sharing using Fedora core 2.6.11-1.1369-FC4.

I am already sharing my wireless LG RD2030 CDMA phone in my Win Xp Pro system and my client able to share the connection.

I tried to connect my wireless LG RD2030 CDMA phone through script based dialing in Fedora and I am able to connect and browse internet. The script is has been given by our ISP. Normally the phone is not deducted in fedora. The phone is connected to PC's USB port. I manually gave /dev/ttyUSB0 while running the script.

I assigned 192.168.0.1 to my Fedora server ip and subnetmask is 255.255.255.0

I assigned static IP 192.168.0.110 to 192.168.0.120 to my winxp client and subnet mask is 255.255.255.0 and default gateway is 192.168.0.1 and preferred DNS is 192.168.0.1. Both my client and fedora server can able to ping each other. But xpclients not able to share the internet connection.

I already tried everything but everyone on net saying different setting for setting NAT.

My setting is
ISP <--> LG RD2030 CDMA Phone <--> Fedora Core Linux Server <--> 1NIC <--> XP Clients

I used the setting as specified in fedoranews dot org website

iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
service iptables save
echo "1" > /proc/sys/net/ipv4/ip_forward

and i changed the value
/etc/sysctl.conf changing net.ipv4.ip_forward = 0 to 1

Because I assigned static IP in both fedora server and xp client. I think the fedora server no need for running DHCP server. so I skip doing settting on DHCP server. I don't know weather i must run DNS server or not. If so guide me how to setup DNS server for my settings. And I need step by step approach to sharing Internet Connection And I am a beginner to linux.


Thank you and expecting your early reply,
K.Guru.
 
  


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
Setting up firewall / nat server da644 Linux - Networking 1 08-02-2005 08:22 PM
setting up a linux server + firewall + nat ddaas Linux - Security 7 10-14-2004 06:42 PM
setting up firewall/nat goldenbrodie Linux - Networking 2 02-25-2004 08:31 AM
Setting up a NAT GhostOfYoda Linux - Networking 3 09-07-2003 02:05 AM
Setting Up Iptables for NAT Chijtska Linux - Networking 1 02-13-2002 06:06 PM

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

All times are GMT -5. The time now is 11:25 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
Open Source Consulting | Domain Registration