Last active
October 9, 2015 17:08
-
-
Save amaltson/55de4aa2598f639865e4 to your computer and use it in GitHub Desktop.
iptables configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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"> | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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