Solved

Need Redhat 5.2 IP Masquerade Help

Posted on 1998-12-06
4
347 Views
Last Modified: 2013-12-15
I am trying to setup Ip Masquerading, I have followed the instructions in several how too's. My server is connected via a dial up. I have a static ip address and a domain name for this. I have been sucessful in setting up email on the work stations they can send an receive mail fine. I can telnet from a workstation to the server ok, from there I can telnet to the outside world. I just can not get the browers to see anything from the workstations.

Gill Blue
http:\\kb4fsk.com (redhat 5.2) system
0
Comment
Question by:gblue
  • 2
4 Comments
 
LVL 2

Expert Comment

by:vx
ID: 1631820
What are your masquerading rules? Did you add any? Telnetting to your server doesn't involve masquerading.  
0
 

Accepted Solution

by:
woodson earned 50 total points
ID: 1631821
type these lines in from console or to have it done for you when you boot put these lines in a startup script

ipfwadm -F -p deny
ipfwadm -F -a m -P TCP -S192.168.1.0/24 -D0.0.0.0/0
ipfwadm -F -a m -P UDP -S192.168.1.0/24 -D0.0.0.0/0

192.168.1.0 is your network address. What I have here will masq to all machines that have ip's of 192.168.1.* as their ip address. Make each client machine's ip something like
192.168.1.2 etc
0
 

Author Comment

by:gblue
ID: 1631822
Thanks for the reply, Here's what I got so far, I was using 10.0.0.1 as my local ip address, I changed my eth0 address to 192.168.0.1

Now I tried your suggestion
ipfwadm -F -p deny Works, I get no errors

When I type ipfwadm -F -a m -P TCP -S192.168.1.0/24 -D0.0.0.0/0
I get the following error:  invalid protocol 'TCP' specified.

any suggestions ?

Gill
 
 
0
 

Expert Comment

by:woodson
ID: 1631823
gblue you have to set your linux machine to 192.168.1.*  the star
can be any number. You say that you have setup with 192.168.0.1 this will put the machine onto a different network address from the machines so make that change of course you dont have to if you keep all machines on the same network :). The next thing to do is to make the TCP and UDP tcp and udp. Put the info i gave you into
/etc/rc.d/rc.local  and make sure ipv4 is running also. Your client machines should use the linux server ip as their gateway and their ip address should be 192.168.1.*
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now