Skip to content

Instantly share code, notes, and snippets.

@amaltson
Last active October 9, 2015 17:08
Show Gist options
  • Save amaltson/55de4aa2598f639865e4 to your computer and use it in GitHub Desktop.
Save amaltson/55de4aa2598f639865e4 to your computer and use it in GitHub Desktop.
iptables configuration
$ curl -k https://192.168.8.135
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
...
$ iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
DNAT tcp -- anywhere anywhere tcp dpt:11080 to:192.168.8.135:80
DNAT tcp -- anywhere anywhere tcp dpt:11443 to:192.168.8.135:443
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment