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.
|
- Trouble to connect FreeBSD 4.5 to internet Xawiers
- Re: Trouble to connect FreeBSD 4.5 to internet Dmitry A. Bondareff
- Re: Trouble to connect FreeBSD 4.5 to interne... Xawiers
- Dmitry A. Bondareff