[root@kindle root]#
find / -name iptables
/usr/lib/iptables
/usr/sbin/iptables
/etc/sysconfig/iptables
[root@kindle root]#
iptables -L
Quote:
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:40317
ACCEPT tcp -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT udp -- anywhere anywhere state ESTABLISHED
ACCEPT udp -- anywhere anywhere state ESTABLISHED
ACCEPT all -- localhost.localdomain anywhere
ACCEPT all -- anywhere anywhere
ACCEPT icmp -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere localhost.localdomain
|
OPTIONAL TO MAKE IT PERMANENT
[root@kindle root]#
iptables -A INPUT -i wlan0 -p tcp --dport 23 -j ACCEPT
(just until we reboot, to finish our testing without rebooting...)
now on our main machine:
me@dev ~ $
telnet k
Quote:
Trying 192.168.1.999...
Connected to k.
Escape character is '^]'.
Welcome to Kindle!
#################################################
# N O T I C E * N O T I C E * N O T I C E #
#################################################
Rootfs is mounted read-only. Invoke mntroot rw to
switch back to a writable rootfs.
#################################################
[root@kindle root]#
|
Heh... sweet.
[root@kindle root]# grep -v
Quote:
BusyBox v1.20.2 (2012-09-03 02:06:04 BST) multi-call binary.
|
Excellent