I thing so:
 
/etc/rc.conf:
# This is for external interface
ifconfig_ed0="inet 192.168.100.253 netmask 255.255.255.0"
# This is for internal interface
ifconfig_xl0="inet internalIP netmask 255.255.255.0"
# Add default to ISP
defaultrouter="192.168.100.254"
# Enable your system as Router
gateway_enable="YES"
# Enable NAT
ipnat_enable="YES"
ipnat_rules="/etc/ipnat.conf"
 
Then add the rule for NAT
/etc/ipnat.conf:
map ed0 internalnet/24 -> 195.14.167.39/32
 
--------------------------------------------------------------------------------------
Warning:
ISP must add the next in his routing table
# route add -host 195.14.167.39 192.168.100.253
 
Or try on your side
arp -s 195.14.167.39 MAC pub
where MAC is MACaddress of your external ethernet card.
--------------------------------------------------------------------------------------
 
Regards,
aka Dimasic.
----- Original Message -----
From: Xawiers
Sent: Saturday, March 16, 2002 7:23 PM
Subject: Re: Trouble to connect FreeBSD 4.5 to internet

Hello again
so how shoult I config that with natd ?
Could someone write any examples?
 
--------------------
Xawiers
 
----- Original Message -----
Sent: Saturday, March 16, 2002 10:58 AM
Subject: Re: Trouble to connect FreeBSD 4.5 to internet

Hmm.
It's too strange configuration.
The ISP must to do translation to 195.14.167.39 on him box.
May be he think that you must do it.
Try to using NAT on your box.
 
And netmask wrong too !
 
Regards,
aka Dimasic.
 
 
----- Original Message -----
From: Xawiers
Sent: Thursday, March 14, 2002 6:22 PM
Subject: Trouble to connect FreeBSD 4.5 to internet

Hello,
I have trouble to connect FreeBSD to internet.
Our ISP gave me these datas about network
Gateway: 192.168.100.254
My external IP: 195.14.167.39
Netmask: 255.255.255.254
 
what i did:
First I added alias, because I cant see my gateway - no ping response (not in the same subnet)
 
ifconfig ed0 inet 192.168.100.253 netmask 255.255.255.0 alias
 
And I add default gateway:
 
route add default 192.168.100.254
 
now my GW responses for ping, but internet - no
How I coud resolve this problem.
 
P.S. sorry for my english
Best regards
Xawiers

Reply via email to