I have a box with two nic cards, AAEON TF-AEC-6831-A1-1010.
We use the box to act as a gateway between LAN / MESH network and to do video replication.
/etc/rc.conf
/etc/ipnat.rules
ifconfig:
I can get to the 192.168.224.49 by using the URL of http://192.168.1.116:8049
but I can not get to http://192.168.1.116:8021 to get to 192.168.119.31
Any suggests? Thanks.
I am using FreeBSD 8.0.
Upgrading the OS on all the boxes we have shipped would be painful but not impossible.
We use the box to act as a gateway between LAN / MESH network and to do video replication.
/etc/rc.conf
Code:
ifconfig_em0="192.168.1.116 netmask 255.255.255.0"
ifconfig_em1="192.168.224.1 netmask 255.255.255.0"
ifconfig_em1_alias0="192.168.119.1 netmask 255.255.255.0"
/etc/ipnat.rules
Code:
rdr em0 0.0.0.0/0 port 8021 -> 192.168.119.31 port 80 tcp
rdr em0 0.0.0.0/0 port 8049 -> 192.168.224.49 port 80 tcp
ifconfig:
Code:
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=19b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4>
ether 00:07:32:16:cd:d3
inet 192.168.1.116 netmask 0xffffff00 broadcast 192.168.1.255
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
em1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=19b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4>
ether 00:07:32:16:cd:d4
inet 192.168.224.1 netmask 0xffffff00 broadcast 192.168.224.255
inet 192.168.119.1 netmask 0xffffff00 broadcast 192.168.119.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
I can get to the 192.168.224.49 by using the URL of http://192.168.1.116:8049
but I can not get to http://192.168.1.116:8021 to get to 192.168.119.31
Any suggests? Thanks.
I am using FreeBSD 8.0.
Upgrading the OS on all the boxes we have shipped would be painful but not impossible.