Re: SCO 5.0.7 AS ROUTER
From: Jean-Pierre Radley (jpr_at_jpr.com)
Date: 05/22/05
- Previous message: Mainak Yajnik: "Re: SCO 5.0.7 AS ROUTER"
- In reply to: Mainak Yajnik: "Re: SCO 5.0.7 AS ROUTER"
- Next in thread: Mainak Yajnik: "Re: SCO 5.0.7 AS ROUTER"
- Reply: Mainak Yajnik: "Re: SCO 5.0.7 AS ROUTER"
- Reply: Brian K. White: "Re: SCO 5.0.7 AS ROUTER"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 22 May 2005 12:33:44 -0400
Mainak Yajnik typed (on Sun, May 22, 2005 at 09:04:41AM -0700):
| I refered the document mentioned above in the message,
|
| Issued the command after login as root
|
| ipnat -FC -f - <<EOF
| >map net0 203.112.130.18/24 - 192.168.0.227/24
| >EOF
|
| It still does not passon the packets from 192,168.0.227 network to the
| internet 203.112.130.18 is the Public IP
I assume that net0 is for the outside NIC, not the inside 192.168 NIC.
If not, then you want the remapping to be on net1.
Anyhow, you have it wrong. You want to map anything on 192.168.0 (a /24
network) to the single public address at 203.112.130.18. And you need
'->', not '-', in the map command.
Put this into /etc/ipnat.rules:
map net0 198.207.0.0/24 -> 203.112.130.18/32
and run
/etc/ipnat -CF -f /etc/ipnat.rules
You should put that last command into /etc/rc.d/7/* so that it runs when
you reboot,
-- JP
- Previous message: Mainak Yajnik: "Re: SCO 5.0.7 AS ROUTER"
- In reply to: Mainak Yajnik: "Re: SCO 5.0.7 AS ROUTER"
- Next in thread: Mainak Yajnik: "Re: SCO 5.0.7 AS ROUTER"
- Reply: Mainak Yajnik: "Re: SCO 5.0.7 AS ROUTER"
- Reply: Brian K. White: "Re: SCO 5.0.7 AS ROUTER"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|