Views 14741 Votes 0 Comment 0
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
/etc/sysconfig/network
-------------------------------------------------------------------
NETWORKING=yes
FORWARD_IPV4=yes
HOSTNAME=ns
GATEWAY=211.227.115.142
GATEWAYDEV=eth0
-------------------------------------------------------------------


/etc/sysconfig/network-scripts/ifcfg-eth0
-------------------------------------------------------------------
BOOTPROTO=static
BROADCAST=211.227.115.0
IPADDR=211.227.115.130
NETMASK=255.255.255.0
NETWORK=211.227.115.0
ONBOOT=yes
-------------------------------------------------------------------


/etc/sysconfig/network-scripts/ifcfg-eth1
-------------------------------------------------------------------
DEVICE=eth1
BOOTPROTO=static
BROADCAST=192.168.1.255
IPADDR=192.168.1.1
NETMASK=255.255.255.0
NETWORK=192.168.1.0
ONBOOT=yes
-------------------------------------------------------------------


/etc/rc.d/rc.local
-------------------------------------------------------------------
insmod ip_tables
insmod iptable_filter
insmod ip_conntrack
insmod ipt_state
insmod ipt_limit

iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to 211.227.115.130

echo "1" > /proc/sys/net/ipv4/ip_forward
-------------------------------------------------------------------

?

List of Articles
No. Category Subject Author Date Views
5 Develop [ios] Start developing your navigation app for CarPlay without enrollment file hooni 2020.02.22 124801
4 Etc 베지어 곡선 (Bezier curve) file hooni 2013.08.18 221358
3 Develop 자주 쓰는 Docker 명령어 alias hooni 2020.01.10 269695
2 Develop [ios] 언어, 지역, 국가 설정 가져오기 hooni 2014.05.12 269928
1 Develop [ios] 아이폰용 앱 오픈 소스들 hooni 2013.04.23 467118
Board Pagination Prev 1 ... 70 71 72 73 74 Next
/ 74