UC-7110 Series User’s Manual Configuring UC-7110

4-8

the module ipt_MASQUERADE):
UC-7110
PC1 (Linux or Windows)
IP/Netmask:
Gateway:
192.168.3.100/24
192.168.3.127
PC2 (Linux or Windows)
IP/Netmask:
Gateway:
192.168.4.100/24
192.168.4.127
LAN1
LAN2
LAN1:eth0 192.168.3.127/24
LAN2:eth1 192.168.4.127/24
NAT Area / Private IP
1.
#echo 1 > /proc/sys/net/ipv4/ip_forward
2.
#iptables -t nat –A POSTROUTING –o eth0 –j SNAT --to-source 192.168.3.127
or
3.
#iptables –t nat –A POSTROUTING –o eth0 –j MASQUERADE

Enabling NAT at Bootup

In most real world situations, you should use a simple shell script to enable NAT when UC-7110
boots up, as indicated below:
1. setting iptables
2. iptables-save > /home/xxx.file (xxx.file is the user defined file name)
3. vi /etc/rc
4. Append echo 1 > /pro c/sys/net/ipv4/ip_forward
5. Append iptables-resotre /home/xxx.file (xxx.file is the user defined file name)
Configuring Dial-in/Dial-out Service

Dial-out Service

Direct cable connection:

y Without username and password, use:
/>pppd connect ‘chat –v’ /dev/ttyM0 38400 crtscts&
y With username and password, use:
/>pppd connect ‘chat –v’ user xxxxx password xxxxx /dev/ttyM0 38400
crtscts&

Connect Using a Modem:

y Use:
/>pppd connect ‘chat –v ATDT<phone_number> CONNECT’ user xxxxx
password xxxxx /dev/ttyM0 38400 crtscts&