That depends on how your VM has its network interface defined.The computer is a VM but this should not make any difference.
iptables -I FORWARD -s 10.0.1.22 -p tcp ! --dport 443 -j DROP
iptables -I FORWARD -s 10.0.1.22 ! -p tcp -j DROP
iptables -D FORWARD -s 10.0.1.22 -p tcp ! --dport 443 -j DROP
iptables -D FORWARD -s 10.0.1.22 ! -p tcp -j DROP
iptables -L -n
I would have thought this would have worked as it is bridged. It might be worth testing the network services filter against a physical PC on your network just to confirm the problem is with the VM and not the filter rules.It is configured as a bridged network interface, the host is in the same network it has the ip 10.0.1.22, the VM needs to be accessible from the lan.
Here's my output from "iptables -L -n -v".I tried it before like you did Colin, but without success, may be you can show me you iptables -L -n output to compare it with mine.
Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 DROP all -- eth0 * 0.0.0.0/0 0.0.0.0/0 state INVALID
18002 12M ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
0 0 DROP all -- !br0 eth0 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT all -- br0 br0 0.0.0.0/0 0.0.0.0/0
0 0 DROP tcp -- br0 eth0 192.168.1.208 0.0.0.0/0 tcp dpts:1:442
0 0 DROP tcp -- br0 eth0 192.168.1.208 0.0.0.0/0 tcp dpts:444:65535
42 2116 ACCEPT all -- br0 eth0 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 ctstate DNAT
0 0 ACCEPT all -- br0 * 0.0.0.0/0 0.0.0.0/0
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!