---
title: "设置IpTable访问"
author: "yezi"
date: "2008-08-15T13:16:41Z"
tags: []
slug: "iptable"
draft: false
lastmod: "2008-08-15T13:16:41Z"
id: 228319
url: "https://yezi.iteye.com/blog/228319"
---

```java

iptables -L
vi /etc/sysconfig/iptables

```

增加相应的端口

```java

-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8161 -j ACCEPT

```

重启IpTable

```java

/etc/rc.d/init.d/iptables restart

```